Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for MutableGraph (0.18 sec)

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

      }
    
      private static MutableGraph<Integer> buildDirectedGraph() {
        MutableGraph<Integer> directedGraph = GraphBuilder.directed().allowsSelfLoops(true).build();
        directedGraph.putEdge(N1, N1);
        directedGraph.putEdge(N1, N2);
        directedGraph.putEdge(N2, N1);
    
        return directedGraph;
      }
    
      private static MutableGraph<Integer> buildUndirectedGraph() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/GraphsTest.java

      }
    
      private static MutableGraph<Integer> buildDirectedGraph() {
        MutableGraph<Integer> directedGraph = GraphBuilder.directed().allowsSelfLoops(true).build();
        directedGraph.putEdge(N1, N1);
        directedGraph.putEdge(N1, N2);
        directedGraph.putEdge(N2, N1);
    
        return directedGraph;
      }
    
      private static MutableGraph<Integer> buildUndirectedGraph() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/EndpointPairTest.java

      }
    
      // Tests for Graph.edges() and Network.asGraph().edges() methods
      // TODO(user): Move these to a more appropriate location in the test suite.
    
      @Test
      public void endpointPair_directedGraph() {
        MutableGraph<Integer> directedGraph = GraphBuilder.directed().allowsSelfLoops(true).build();
        directedGraph.addNode(N0);
        directedGraph.putEdge(N1, N2);
        directedGraph.putEdge(N2, N1);
        directedGraph.putEdge(N1, N3);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/EndpointPairTest.java

      }
    
      // Tests for Graph.edges() and Network.asGraph().edges() methods
      // TODO(user): Move these to a more appropriate location in the test suite.
    
      @Test
      public void endpointPair_directedGraph() {
        MutableGraph<Integer> directedGraph = GraphBuilder.directed().allowsSelfLoops(true).build();
        directedGraph.addNode(N0);
        directedGraph.putEdge(N1, N2);
        directedGraph.putEdge(N2, N1);
        directedGraph.putEdge(N1, N3);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/Graph.java

     * create an instance of one of the built-in implementations of {@code Graph}, use the {@link
     * GraphBuilder} class:
     *
     * <pre>{@code
     * MutableGraph<Integer> graph = GraphBuilder.undirected().build();
     * }</pre>
     *
     * <p>{@link GraphBuilder#build()} returns an instance of {@link MutableGraph}, which is a subtype
     * of {@code Graph} that provides methods for adding and removing nodes and edges. If you do not
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      final boolean graphIsMutable() {
        return graphAsMutableGraph != null;
      }
    
      @Before
      public final void init() {
        graph = createGraph();
        if (graph instanceof MutableGraph) {
          graphAsMutableGraph = (MutableGraph<Integer>) graph;
        }
      }
    
      @After
      public final void validateGraphState() {
        validateGraph(graph);
      }
    
      static <N> void validateGraph(Graph<N> graph) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      final boolean graphIsMutable() {
        return graphAsMutableGraph != null;
      }
    
      @Before
      public final void init() {
        graph = createGraph();
        if (graph instanceof MutableGraph) {
          graphAsMutableGraph = (MutableGraph<Integer>) graph;
        }
      }
    
      @After
      public final void validateGraphState() {
        validateGraph(graph);
      }
    
      static <N> void validateGraph(Graph<N> graph) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/Graphs.java

       *
       * @throws IllegalArgumentException if any element in {@code nodes} is not a node in the graph
       */
      public static <N> MutableGraph<N> inducedSubgraph(Graph<N> graph, Iterable<? extends N> nodes) {
        MutableGraph<N> subgraph =
            (nodes instanceof Collection)
                ? GraphBuilder.from(graph).expectedNodeCount(((Collection) nodes).size()).build()
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/TraverserTest.java

      public void forTree_acceptsDirectedGraph() throws Exception {
        MutableGraph<String> graph = GraphBuilder.directed().build();
        graph.putEdge("a", "b");
    
        Traverser.forTree(graph); // Does not throw
      }
    
      @Test
      public void forTree_withUndirectedGraph_throws() throws Exception {
        MutableGraph<String> graph = GraphBuilder.undirected().build();
        graph.putEdge("a", "b");
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 47.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/TraverserTest.java

      public void forTree_acceptsDirectedGraph() throws Exception {
        MutableGraph<String> graph = GraphBuilder.directed().build();
        graph.putEdge("a", "b");
    
        Traverser.forTree(graph); // Does not throw
      }
    
      @Test
      public void forTree_withUndirectedGraph_throws() throws Exception {
        MutableGraph<String> graph = GraphBuilder.undirected().build();
        graph.putEdge("a", "b");
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 47.5K bytes
    - Viewed (0)
Back to top