Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for MutableNetwork (0.07 sec)

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

      @Test
      public void edgeOrder_none() {
        MutableNetwork<Integer, String> network =
            NetworkBuilder.directed().edgeOrder(unordered()).build();
    
        assertThat(network.edgeOrder()).isEqualTo(unordered());
        assertThat(network.nodeOrder()).isEqualTo(insertion()); // default
      }
    
      @Test
      public void edgeOrder_insertion() {
        MutableNetwork<Integer, String> network =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/PackageSanityTests.java

          NetworkBuilder.directed().<String, String>immutable().addNode("B").build();
    
      public PackageSanityTests() {
        MutableNetwork<String, String> mutableNetworkA = NetworkBuilder.directed().build();
        mutableNetworkA.addNode("a");
        MutableNetwork<String, String> mutableNetworkB = NetworkBuilder.directed().build();
        mutableNetworkB.addNode("b");
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

        network.addNode(N1);
    
        MutableNetwork<Integer, String> g2 = createNetwork(edgeType);
        g2.addNode(N2);
    
        assertThat(network).isNotEqualTo(g2);
      }
    
      // Node sets are the same, but edge sets differ.
      @Test
      public void equivalent_edgeSetsDiffer() {
        network.addEdge(N1, N2, E12);
    
        MutableNetwork<Integer, String> g2 = createNetwork(edgeType);
        g2.addEdge(N1, N2, E13);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

        network.addNode(N1);
    
        MutableNetwork<Integer, String> g2 = createNetwork(edgeType);
        g2.addNode(N2);
    
        assertThat(network).isNotEqualTo(g2);
      }
    
      // Node sets are the same, but edge sets differ.
      @Test
      public void equivalent_edgeSetsDiffer() {
        network.addEdge(N1, N2, E12);
    
        MutableNetwork<Integer, String> g2 = createNetwork(edgeType);
        g2.addEdge(N1, N2, E13);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/GraphsTest.java

      }
    
      @Test
      public void transpose_undirectedNetwork() {
        MutableNetwork<Integer, String> undirectedGraph = NetworkBuilder.undirected().build();
        undirectedGraph.addEdge(N1, N2, E12);
    
        assertThat(transpose(undirectedGraph)).isSameInstanceAs(undirectedGraph);
      }
    
      @Test
      public void transpose_directedNetwork() {
        MutableNetwork<Integer, String> directedGraph =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/GraphPropertiesTest.java

        directedGraph = mutableDirectedGraph;
        undirectedGraph = mutableUndirectedGraph;
    
        MutableNetwork<Integer, String> mutableDirectedNetwork =
            NetworkBuilder.directed().allowsParallelEdges(true).allowsSelfLoops(true).build();
        MutableNetwork<Integer, String> mutableUndirectedNetwork =
            NetworkBuilder.undirected().allowsParallelEdges(true).allowsSelfLoops(true).build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 18 17:56:35 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/PackageSanityTests.java

          NetworkBuilder.directed().<String, String>immutable().addNode("B").build();
    
      public PackageSanityTests() {
        MutableNetwork<String, String> mutableNetworkA = NetworkBuilder.directed().build();
        mutableNetworkA.addNode("a");
        MutableNetwork<String, String> mutableNetworkB = NetworkBuilder.directed().build();
        mutableNetworkB.addNode("b");
    
    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. android/guava/src/com/google/common/graph/NetworkBuilder.java

        NetworkBuilder<N, E1> newBuilder = cast();
        newBuilder.edgeOrder = checkNotNull(edgeOrder);
        return newBuilder;
      }
    
      /** Returns an empty {@link MutableNetwork} with the properties of this {@link NetworkBuilder}. */
      public <N1 extends N, E1 extends E> MutableNetwork<N1, E1> build() {
        return new StandardMutableNetwork<>(this);
      }
    
      @SuppressWarnings("unchecked")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/NetworkMutationTest.java

        Random gen = new Random(42); // Fixed seed so test results are deterministic.
    
        for (int trial = 0; trial < NUM_TRIALS; ++trial) {
          MutableNetwork<Integer, Object> network =
              networkBuilder.allowsParallelEdges(true).allowsSelfLoops(true).build();
    
          assertThat(network.nodes()).isEmpty();
          assertThat(network.edges()).isEmpty();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 10 19:42:18 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

      final boolean graphIsMutable() {
        return networkAsMutableNetwork != null;
      }
    
      @Before
      public void init() {
        network = createGraph();
        if (network instanceof MutableNetwork) {
          networkAsMutableNetwork = (MutableNetwork<Integer, String>) network;
        }
      }
    
      @After
      public void validateNetworkState() {
        validateNetwork(network);
      }
    
    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