/external/guava/android/guava-tests/test/com/google/common/graph/ |
D | DefaultNetworkImplementationsTest.java | 54 private static final String E12_A = "1-2a"; field in DefaultNetworkImplementationsTest 149 network.addEdge(N1, N2, E12_A); in edgesConnecting_parallelEdges() 152 assertThat(networkForTest.edgesConnecting(N1, N2)).containsExactly(E12, E12_A); in edgesConnecting_parallelEdges() 155 assertThat(networkForTest.edgesConnecting(N1, N2)).containsExactly(E12, E12_A, E21); in edgesConnecting_parallelEdges() 156 assertThat(networkForTest.edgesConnecting(N2, N1)).containsExactly(E12, E12_A, E21); in edgesConnecting_parallelEdges()
|
D | GraphsTest.java | 46 private static final String E12_A = "1-2a"; field in GraphsTest 303 directedGraph.addEdge(N1, N2, E12_A); in transpose_directedNetwork() 312 expectedTranspose.addEdge(N2, N1, E12_A); in transpose_directedNetwork() 479 directedGraph.addEdge(N1, N2, E12_A); in createDirected() 505 undirectedGraph.addEdge(N1, N2, E12_A); in createUndirected() 531 assertThat(directedMultigraph.addEdge(N1, N2, E12_A)).isTrue(); in createDirected_multigraph() 532 assertThat(directedMultigraph.edgesConnecting(N1, N2)).isEqualTo(ImmutableSet.of(E12, E12_A)); in createDirected_multigraph() 541 assertThat(undirectedMultigraph.addEdge(N1, N2, E12_A)).isTrue(); in createUndirected_multigraph() 544 .isEqualTo(ImmutableSet.of(E12, E12_A, E21)); in createUndirected_multigraph() 654 directedGraph.addEdge(N1, N2, E12_A); in buildDirectedNetwork() [all …]
|
D | NetworkEquivalenceTest.java | 41 private static final String E12_A = "1-2a"; field in NetworkEquivalenceTest 164 g1.addEdge(N1, N2, E12_A); in equivalent_edgeAddOrdersDiffer() 167 g2.addEdge(N1, N2, E12_A); in equivalent_edgeAddOrdersDiffer()
|
D | AbstractNetworkTest.java | 79 static final String E12_A = "1-2a"; field in AbstractNetworkTest 496 addEdge(N1, N2, E12_A); in adjacentEdges_parallelEdges() 500 assertThat(network.adjacentEdges(E12)).containsExactly(E12_A, E12_B); in adjacentEdges_parallelEdges() 540 addEdge(N1, N2, E12_A); in edgesConnecting_parallelEdges_directed() 542 assertThat(network.edgesConnecting(N1, N2)).containsExactly(E12, E12_A); in edgesConnecting_parallelEdges_directed() 554 addEdge(N1, N2, E12_A); in edgesConnecting_parallelEdges_undirected() 557 assertThat(network.edgesConnecting(N1, N2)).containsExactly(E12, E12_A, E21); in edgesConnecting_parallelEdges_undirected() 558 assertThat(network.edgesConnecting(N2, N1)).containsExactly(E12, E12_A, E21); in edgesConnecting_parallelEdges_undirected() 766 addEdge(N1, N2, E12_A); in removeEdge_parallelEdge() 767 assertTrue(networkAsMutableNetwork.removeEdge(E12_A)); in removeEdge_parallelEdge()
|
D | EndpointPairTest.java | 40 private static final String E12_A = "1-2a"; field in EndpointPairTest 173 undirectedNetwork.addEdge(N2, N1, E12_A); // adds parallel edge, won't be in Graph edges in endpointPair_undirectedNetwork()
|
D | AbstractStandardUndirectedNetworkTest.java | 452 assertTrue(networkAsMutableNetwork.addEdge(N1, N2, E12_A)); in addEdge_parallelEdge_allowsParallelEdges() 453 assertThat(network.edgesConnecting(N1, N2)).containsExactly(E12, E12_A, E21); in addEdge_parallelEdge_allowsParallelEdges()
|
D | AbstractStandardDirectedNetworkTest.java | 555 assertTrue(networkAsMutableNetwork.addEdge(N1, N2, E12_A)); in addEdge_parallelEdge_allowsParallelEdges() 556 assertThat(network.edgesConnecting(N1, N2)).containsExactly(E12, E12_A); in addEdge_parallelEdge_allowsParallelEdges()
|
/external/guava/guava-tests/test/com/google/common/graph/ |
D | DefaultNetworkImplementationsTest.java | 54 private static final String E12_A = "1-2a"; field in DefaultNetworkImplementationsTest 149 network.addEdge(N1, N2, E12_A); in edgesConnecting_parallelEdges() 152 assertThat(networkForTest.edgesConnecting(N1, N2)).containsExactly(E12, E12_A); in edgesConnecting_parallelEdges() 155 assertThat(networkForTest.edgesConnecting(N1, N2)).containsExactly(E12, E12_A, E21); in edgesConnecting_parallelEdges() 156 assertThat(networkForTest.edgesConnecting(N2, N1)).containsExactly(E12, E12_A, E21); in edgesConnecting_parallelEdges()
|
D | GraphsTest.java | 46 private static final String E12_A = "1-2a"; field in GraphsTest 303 directedGraph.addEdge(N1, N2, E12_A); in transpose_directedNetwork() 312 expectedTranspose.addEdge(N2, N1, E12_A); in transpose_directedNetwork() 480 directedGraph.addEdge(N1, N2, E12_A); in createDirected() 506 undirectedGraph.addEdge(N1, N2, E12_A); in createUndirected() 532 assertThat(directedMultigraph.addEdge(N1, N2, E12_A)).isTrue(); in createDirected_multigraph() 533 assertThat(directedMultigraph.edgesConnecting(N1, N2)).isEqualTo(ImmutableSet.of(E12, E12_A)); in createDirected_multigraph() 542 assertThat(undirectedMultigraph.addEdge(N1, N2, E12_A)).isTrue(); in createUndirected_multigraph() 545 .isEqualTo(ImmutableSet.of(E12, E12_A, E21)); in createUndirected_multigraph() 655 directedGraph.addEdge(N1, N2, E12_A); in buildDirectedNetwork() [all …]
|
D | NetworkEquivalenceTest.java | 41 private static final String E12_A = "1-2a"; field in NetworkEquivalenceTest 164 g1.addEdge(N1, N2, E12_A); in equivalent_edgeAddOrdersDiffer() 167 g2.addEdge(N1, N2, E12_A); in equivalent_edgeAddOrdersDiffer()
|
D | AbstractNetworkTest.java | 79 static final String E12_A = "1-2a"; field in AbstractNetworkTest 503 addEdge(N1, N2, E12_A); in adjacentEdges_parallelEdges() 507 assertThat(network.adjacentEdges(E12)).containsExactly(E12_A, E12_B); in adjacentEdges_parallelEdges() 547 addEdge(N1, N2, E12_A); in edgesConnecting_parallelEdges_directed() 549 assertThat(network.edgesConnecting(N1, N2)).containsExactly(E12, E12_A); in edgesConnecting_parallelEdges_directed() 561 addEdge(N1, N2, E12_A); in edgesConnecting_parallelEdges_undirected() 564 assertThat(network.edgesConnecting(N1, N2)).containsExactly(E12, E12_A, E21); in edgesConnecting_parallelEdges_undirected() 565 assertThat(network.edgesConnecting(N2, N1)).containsExactly(E12, E12_A, E21); in edgesConnecting_parallelEdges_undirected() 773 addEdge(N1, N2, E12_A); in removeEdge_parallelEdge() 774 assertTrue(networkAsMutableNetwork.removeEdge(E12_A)); in removeEdge_parallelEdge()
|
D | EndpointPairTest.java | 40 private static final String E12_A = "1-2a"; field in EndpointPairTest 173 undirectedNetwork.addEdge(N2, N1, E12_A); // adds parallel edge, won't be in Graph edges in endpointPair_undirectedNetwork()
|
D | AbstractStandardUndirectedNetworkTest.java | 467 assertTrue(networkAsMutableNetwork.addEdge(N1, N2, E12_A)); in addEdge_parallelEdge_allowsParallelEdges() 468 assertThat(network.edgesConnecting(N1, N2)).containsExactly(E12, E12_A, E21); in addEdge_parallelEdge_allowsParallelEdges()
|
D | AbstractStandardDirectedNetworkTest.java | 567 assertTrue(networkAsMutableNetwork.addEdge(N1, N2, E12_A)); in addEdge_parallelEdge_allowsParallelEdges() 568 assertThat(network.edgesConnecting(N1, N2)).containsExactly(E12, E12_A); in addEdge_parallelEdge_allowsParallelEdges()
|