Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for GraphConnections (0.36 seconds)

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

     * a {@link Graph}.
     *
     * @author James Sexton
     * @param <N> Node parameter type
     * @param <V> Value parameter type
     */
    interface GraphConnections<N, V> {
    
      Set<N> adjacentNodes();
    
      Set<N> predecessors();
    
      Set<N> successors();
    
      /**
       * Returns an iterator over the incident edges.
       *
    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)
  2. android/guava/src/com/google/common/graph/StandardMutableValueGraph.java

        return true;
      }
    
      /**
       * Adds {@code node} to the graph and returns the associated {@link GraphConnections}.
       *
       * @throws IllegalStateException if {@code node} is already present
       */
      @CanIgnoreReturnValue
      private GraphConnections<N, V> addNodeInternal(N node) {
        GraphConnections<N, V> connections = newConnections();
        checkState(nodeConnections.put(node, connections) == null);
        return connections;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 6.3K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/graph/StandardValueGraph.java

      }
    
      @Override
      protected long edgeCount() {
        return edgeCount;
      }
    
      private final GraphConnections<N, V> checkedConnections(N node) {
        GraphConnections<N, V> connections = nodeConnections.get(node);
        if (connections == null) {
          checkNotNull(node);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 6K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/graph/UndirectedGraphConnections.java

    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * An implementation of {@link GraphConnections} for undirected graphs.
     *
     * @author James Sexton
     * @param <N> Node parameter type
     * @param <V> Value parameter type
     */
    final class UndirectedGraphConnections<N, V> implements GraphConnections<N, V> {
      private final Map<N, V> adjacentNodeValues;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.3K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

      }
    
      private static <N, V> ImmutableMap<N, GraphConnections<N, V>> getNodeConnections(
          ValueGraph<N, V> graph) {
        // ImmutableMap.Builder maintains the order of the elements as inserted, so the map will have
        // whatever ordering the graph's nodes do, so ImmutableSortedMap is unnecessary even if the
        // input nodes are sorted.
        ImmutableMap.Builder<N, GraphConnections<N, V>> nodeConnections = ImmutableMap.builder();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/graph/ImmutableGraph.java

      }
    
      private static <N> ImmutableMap<N, GraphConnections<N, Presence>> getNodeConnections(
          Graph<N> graph) {
        // ImmutableMap.Builder maintains the order of the elements as inserted, so the map will have
        // whatever ordering the graph's nodes do, so ImmutableSortedMap is unnecessary even if the
        // input nodes are sorted.
        ImmutableMap.Builder<N, GraphConnections<N, Presence>> nodeConnections = ImmutableMap.builder();
    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)
  7. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * An implementation of {@link GraphConnections} for directed graphs.
     *
     * @author James Sexton
     * @author Jens Nyman
     * @param <N> Node parameter type
     * @param <V> Value parameter type
     */
    final class DirectedGraphConnections<N, V> implements GraphConnections<N, V> {
      /**
       * A wrapper class to indicate a node is both a predecessor and successor while still providing
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 17.8K bytes
    - Click Count (0)
Back to Top