Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 105 for Undirected (0.26 seconds)

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

      //
      // Graph properties
      //
    
      /**
       * Returns true if the edges in this graph are directed. Directed edges connect a {@link
       * EndpointPair#source() source node} to a {@link EndpointPair#target() target node}, while
       * undirected edges connect a pair of nodes to each other.
       */
      boolean isDirected();
    
      /**
       * Returns true if this graph allows self-loops (edges that connect a node to itself). Attempting
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Nov 11 17:11:16 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

      private final EdgeType edgeType;
      private final MutableGraph<Integer> graph;
    
      // add parameters: directed/undirected
      @Parameters
      public static Collection<Object[]> parameters() {
        return Arrays.asList(new Object[][] {{EdgeType.UNDIRECTED}, {EdgeType.DIRECTED}});
      }
    
      public GraphEquivalenceTest(EdgeType edgeType) {
        this.edgeType = edgeType;
        this.graph = createGraph(edgeType);
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 4.6K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/graph/EndpointPairIterator.java

      Iterator<N> successorIterator = ImmutableSet.<N>of().iterator();
    
      static <N> EndpointPairIterator<N> of(BaseGraph<N> graph) {
        return graph.isDirected() ? new Directed<N>(graph) : new Undirected<N>(graph);
      }
    
      private EndpointPairIterator(BaseGraph<N> graph) {
        this.graph = graph;
        this.nodeIterator = graph.nodes().iterator();
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 4.9K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/graph/ValueGraph.java

      //
      // ValueGraph properties
      //
    
      /**
       * Returns true if the edges in this graph are directed. Directed edges connect a {@link
       * EndpointPair#source() source node} to a {@link EndpointPair#target() target node}, while
       * undirected edges connect a pair of nodes to each other.
       */
      @Override
      boolean isDirected();
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 15K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/graph/GraphConnections.java

      /**
       * Add {@code node} as a predecessor to the origin node. In the case of an undirected graph, it
       * also becomes a successor. Associates {@code value} with the edge connecting the two nodes.
       */
      void addPredecessor(N node, V value);
    
      /**
       * Add {@code node} as a successor to the origin node. In the case of an undirected graph, it also
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

      private ValueGraphBuilder(boolean directed) {
        super(directed);
      }
    
      /** Returns a {@link ValueGraphBuilder} for building directed graphs. */
      public static ValueGraphBuilder<Object, Object> directed() {
        return new ValueGraphBuilder<>(true);
      }
    
      /** Returns a {@link ValueGraphBuilder} for building undirected graphs. */
      public static ValueGraphBuilder<Object, Object> undirected() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/graph/ImmutableNetwork.java

        /**
         * Adds {@code edge} connecting {@code endpoints}. In an undirected network, {@code edge} will
         * also connect {@code nodeV} to {@code nodeU}.
         *
         * <p>If this network is directed, {@code edge} will be directed in this network; if it is
         * undirected, {@code edge} will be undirected in this network.
         *
         * <p>If this network is directed, {@code endpoints} must be ordered.
         *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 9.6K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/graph/ImmutableGraph.java

         * endpoints}) if one is not already present.
         *
         * <p>If this graph is directed, {@code endpoints} must be ordered and the added edge will be
         * directed; if it is undirected, the added edge will be undirected.
         *
         * <p>If this graph is directed, {@code endpoints} must be ordered.
         *
         * <p>If either or both endpoints are not already present in this graph, this method will
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/graph/Graphs.java

          Graph<?> graph, Object nextNode, @Nullable Object previousNode) {
        if (graph.isDirected() || !Objects.equals(previousNode, nextNode)) {
          return true;
        }
        // This falls into the undirected A->B->A case. The Graph interface does not support parallel
        // edges, so this traversal would require reusing the undirected AB edge.
        return false;
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 24.4K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/graph/MutableGraph.java

       * endpoints}) if one is not already present.
       *
       * <p>If this graph is directed, {@code endpoints} must be ordered and the added edge will be
       * directed; if it is undirected, the added edge will be undirected.
       *
       * <p>If this graph is directed, {@code endpoints} must be ordered.
       *
       * <p>If either or both endpoints are not already present in this graph, this method will silently
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 3.8K bytes
    - Click Count (0)
Back to Top