Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for immutableNetwork (0.28 sec)

  1. android/guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

    import org.junit.runners.JUnit4;
    
    /** Tests for {@link ImmutableNetwork}. */
    @RunWith(JUnit4.class)
    public class ImmutableNetworkTest {
    
      @Test
      public void immutableNetwork() {
        MutableNetwork<String, Integer> mutableNetwork = NetworkBuilder.directed().build();
        mutableNetwork.addNode("A");
        ImmutableNetwork<String, Integer> immutableNetwork = ImmutableNetwork.copyOf(mutableNetwork);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun May 05 18:02:35 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

    import org.junit.runners.JUnit4;
    
    /** Tests for {@link ImmutableNetwork}. */
    @RunWith(JUnit4.class)
    public class ImmutableNetworkTest {
    
      @Test
      public void immutableNetwork() {
        MutableNetwork<String, Integer> mutableNetwork = NetworkBuilder.directed().build();
        mutableNetwork.addNode("A");
        ImmutableNetwork<String, Integer> immutableNetwork = ImmutableNetwork.copyOf(mutableNetwork);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun May 05 18:02:35 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/NetworkBuilder.java

            .edgeOrder(network.edgeOrder());
      }
    
      /**
       * Returns an {@link ImmutableNetwork.Builder} with the properties of this {@link NetworkBuilder}.
       *
       * <p>The returned builder can be used for populating an {@link ImmutableNetwork}.
       *
       * @since 28.0
       */
      public <N1 extends N, E1 extends E> ImmutableNetwork.Builder<N1, E1> immutable() {
        NetworkBuilder<N1, E1> castBuilder = cast();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/StandardImmutableDirectedNetworkTest.java

    import java.util.Arrays;
    import java.util.Collection;
    import org.junit.runner.RunWith;
    import org.junit.runners.Parameterized;
    import org.junit.runners.Parameterized.Parameters;
    
    /** Tests for a directed {@link ImmutableNetwork}. */
    @AndroidIncompatible
    @RunWith(Parameterized.class)
    public class StandardImmutableDirectedNetworkTest extends AbstractStandardDirectedNetworkTest {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 09 17:01:22 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/PackageSanityTests.java

          NetworkBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16);
    
      private static final ImmutableNetwork<String, String> IMMUTABLE_NETWORK_A =
          NetworkBuilder.directed().<String, String>immutable().addNode("A").build();
      private static final ImmutableNetwork<String, String> IMMUTABLE_NETWORK_B =
          NetworkBuilder.directed().<String, String>immutable().addNode("B").build();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/StandardImmutableDirectedNetworkTest.java

    import java.util.Arrays;
    import java.util.Collection;
    import org.junit.runner.RunWith;
    import org.junit.runners.Parameterized;
    import org.junit.runners.Parameterized.Parameters;
    
    /** Tests for a directed {@link ImmutableNetwork}. */
    @AndroidIncompatible
    @RunWith(Parameterized.class)
    public class StandardImmutableDirectedNetworkTest extends AbstractStandardDirectedNetworkTest {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 09 17:01:22 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/PackageSanityTests.java

          NetworkBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16);
    
      private static final ImmutableNetwork<String, String> IMMUTABLE_NETWORK_A =
          NetworkBuilder.directed().<String, String>immutable().addNode("A").build();
      private static final ImmutableNetwork<String, String> IMMUTABLE_NETWORK_B =
          NetworkBuilder.directed().<String, String>immutable().addNode("B").build();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/Network.java

     * ImmutableNetwork}.
     *
     * <p>You can create an immutable copy of an existing {@code Network} using {@link
     * ImmutableNetwork#copyOf(Network)}:
     *
     * <pre>{@code
     * ImmutableNetwork<Integer, MyEdge> immutableGraph = ImmutableNetwork.copyOf(network);
     * }</pre>
     *
     * <p>Instances of {@link ImmutableNetwork} do not implement {@link MutableNetwork} (obviously!) and
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/Network.java

     * ImmutableNetwork}.
     *
     * <p>You can create an immutable copy of an existing {@code Network} using {@link
     * ImmutableNetwork#copyOf(Network)}:
     *
     * <pre>{@code
     * ImmutableNetwork<Integer, MyEdge> immutableGraph = ImmutableNetwork.copyOf(network);
     * }</pre>
     *
     * <p>Instances of {@link ImmutableNetwork} do not implement {@link MutableNetwork} (obviously!) and
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

        validateNetwork(network);
      }
    
      static <N, E> void validateNetwork(Network<N, E> network) {
        assertStronglyEquivalent(network, Graphs.copyOf(network));
        assertStronglyEquivalent(network, ImmutableNetwork.copyOf(network));
    
        String networkString = network.toString();
        assertThat(networkString).contains("isDirected: " + network.isDirected());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
Back to top