Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for directedGraph (0.11 sec)

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

        MutableNetwork<Integer, String> directedGraph =
            NetworkBuilder.directed().allowsParallelEdges(true).allowsSelfLoops(true).build();
        directedGraph.addEdge(N1, N3, E13);
        directedGraph.addEdge(N3, N1, E31);
        directedGraph.addEdge(N1, N2, E12);
        directedGraph.addEdge(N1, N2, E12_A);
        directedGraph.addEdge(N1, N1, E11);
        directedGraph.addEdge(N3, N4, E34);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/GraphPropertiesTest.java

      @Test
      public void hasCycle_emptyGraph() {
        assertThat(hasCycle(directedGraph)).isFalse();
        assertThat(hasCycle(undirectedGraph)).isFalse();
      }
    
      @Test
      public void hasCycle_isolatedNodes() {
        for (MutableGraph<Integer> graph : graphsToTest) {
          graph.addNode(1);
          graph.addNode(2);
        }
        assertThat(hasCycle(directedGraph)).isFalse();
        assertThat(hasCycle(undirectedGraph)).isFalse();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 18 17:56:35 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/ValueGraphTest.java

            assertThat(!graph.edgeValueOrDefault(node, otherNode, DEFAULT).equals(DEFAULT))
                .isEqualTo(hasEdge);
          }
        }
      }
    
      @Test
      public void directedGraph() {
        graph = ValueGraphBuilder.directed().allowsSelfLoops(true).build();
        graph.putEdgeValue(1, 2, "valueA");
        graph.putEdgeValue(2, 1, "valueB");
        graph.putEdgeValue(2, 3, "valueC");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 06 18:35:19 UTC 2024
    - 20K bytes
    - Viewed (0)
Back to top