Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 42 for isRedirected (0.15 sec)

  1. guava/src/com/google/common/graph/StandardNetwork.java

        return nodeConnections.unmodifiableKeySet();
      }
    
      @Override
      public Set<E> edges() {
        return edgeToReferenceNode.unmodifiableKeySet();
      }
    
      @Override
      public boolean isDirected() {
        return isDirected;
      }
    
      @Override
      public boolean allowsParallelEdges() {
        return allowsParallelEdges;
      }
    
      @Override
      public boolean allowsSelfLoops() {
        return allowsSelfLoops;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/Graphs.java

       */
      public static <N> boolean hasCycle(Graph<N> graph) {
        int numEdges = graph.edges().size();
        if (numEdges == 0) {
          return false; // An edge-free graph is acyclic by definition.
        }
        if (!graph.isDirected() && numEdges >= graph.nodes().size()) {
          return true; // Optimization for the undirected case: at least one cycle must exist.
        }
    
        Map<Object, NodeVisitState> visitedNodes =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/Graphs.java

       */
      public static <N> boolean hasCycle(Graph<N> graph) {
        int numEdges = graph.edges().size();
        if (numEdges == 0) {
          return false; // An edge-free graph is acyclic by definition.
        }
        if (!graph.isDirected() && numEdges >= graph.nodes().size()) {
          return true; // Optimization for the undirected case: at least one cycle must exist.
        }
    
        Map<Object, NodeVisitState> visitedNodes =
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

       * interface, such as {@link ValueGraph#isDirected()}. Other properties, such as {@link
       * #expectedNodeCount(int)}, are not set in the new builder.
       */
      public static <N, V> ValueGraphBuilder<N, V> from(ValueGraph<N, V> graph) {
        return new ValueGraphBuilder<N, V>(graph.isDirected())
            .allowsSelfLoops(graph.allowsSelfLoops())
            .nodeOrder(graph.nodeOrder())
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/GraphBuilder.java

       * <p>The "queryable" properties are those that are exposed through the {@link Graph} interface,
       * such as {@link Graph#isDirected()}. Other properties, such as {@link #expectedNodeCount(int)},
       * are not set in the new builder.
       */
      public static <N> GraphBuilder<N> from(Graph<N> graph) {
        return new GraphBuilder<N>(graph.isDirected())
            .allowsSelfLoops(graph.allowsSelfLoops())
            .nodeOrder(graph.nodeOrder())
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 7.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/EndpointPair.java

      static <N> EndpointPair<N> of(Graph<?> graph, N nodeU, N nodeV) {
        return graph.isDirected() ? ordered(nodeU, nodeV) : unordered(nodeU, nodeV);
      }
    
      /** Returns an {@link EndpointPair} representing the endpoints of an edge in {@code network}. */
      static <N> EndpointPair<N> of(Network<?, ?> network, N nodeU, N nodeV) {
        return network.isDirected() ? ordered(nodeU, nodeV) : unordered(nodeU, nodeV);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 8.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/graph/NetworkBuilder.java

       * such as {@link Network#isDirected()}. Other properties, such as {@link
       * #expectedNodeCount(int)}, are not set in the new builder.
       */
      public static <N, E> NetworkBuilder<N, E> from(Network<N, E> network) {
        return new NetworkBuilder<N, E>(network.isDirected())
            .allowsParallelEdges(network.allowsParallelEdges())
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/ValueGraphBuilder.java

       * interface, such as {@link ValueGraph#isDirected()}. Other properties, such as {@link
       * #expectedNodeCount(int)}, are not set in the new builder.
       */
      public static <N, V> ValueGraphBuilder<N, V> from(ValueGraph<N, V> graph) {
        return new ValueGraphBuilder<N, V>(graph.isDirected())
            .allowsSelfLoops(graph.allowsSelfLoops())
            .nodeOrder(graph.nodeOrder())
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/EndpointPair.java

      static <N> EndpointPair<N> of(Graph<?> graph, N nodeU, N nodeV) {
        return graph.isDirected() ? ordered(nodeU, nodeV) : unordered(nodeU, nodeV);
      }
    
      /** Returns an {@link EndpointPair} representing the endpoints of an edge in {@code network}. */
      static <N> EndpointPair<N> of(Network<?, ?> network, N nodeU, N nodeV) {
        return network.isDirected() ? ordered(nodeU, nodeV) : unordered(nodeU, nodeV);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 8.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/StandardMutableValueGraph.java

          requireNonNull(nodeConnections.getWithoutCaching(successor)).removePredecessor(node);
          requireNonNull(connections.removeSuccessor(successor));
          --edgeCount;
        }
        if (isDirected()) { // In undirected graphs, the successor and predecessor sets are equal.
          // Since views are returned, we need to copy the predecessors that will be removed.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Oct 21 01:50:30 UTC 2023
    - 6.4K bytes
    - Viewed (0)
Back to top