Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for MutableGraph (0.07 sec)

  1. android/guava/src/com/google/common/graph/GraphBuilder.java

        GraphBuilder<N1> newBuilder = cast();
        newBuilder.incidentEdgeOrder = checkNotNull(incidentEdgeOrder);
        return newBuilder;
      }
    
      /** Returns an empty {@link MutableGraph} with the properties of this {@link GraphBuilder}. */
      public <N1 extends N> MutableGraph<N1> build() {
        return new StandardMutableGraph<>(this);
      }
    
      GraphBuilder<N> copy() {
        GraphBuilder<N> newBuilder = new GraphBuilder<>(directed);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  2. 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()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  3. 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()
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  4. 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");
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  5. 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");
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
Back to top