Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for NetworkConnections (0.16 sec)

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

     * in a {@link Network}.
     *
     * @author James Sexton
     * @param <N> Node parameter type
     * @param <E> Edge parameter type
     */
    @ElementTypesAreNonnullByDefault
    interface NetworkConnections<N, E> {
    
      Set<N> adjacentNodes();
    
      Set<N> predecessors();
    
      Set<N> successors();
    
      Set<E> incidentEdges();
    
      Set<E> inEdges();
    
      Set<E> outEdges();
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/StandardMutableNetwork.java

        return true;
      }
    
      /**
       * Adds {@code node} to the graph and returns the associated {@link NetworkConnections}.
       *
       * @throws IllegalStateException if {@code node} is already present
       */
      @CanIgnoreReturnValue
      private NetworkConnections<N, E> addNodeInternal(N node) {
        NetworkConnections<N, E> connections = newConnections();
        checkState(nodeConnections.put(node, connections) == null);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/StandardNetwork.java

        this.nodeConnections =
            (nodeConnections instanceof TreeMap)
                ? new MapRetrievalCache<N, NetworkConnections<N, E>>(nodeConnections)
                : new MapIteratorCache<N, NetworkConnections<N, E>>(nodeConnections);
        this.edgeToReferenceNode = new MapIteratorCache<>(edgeToReferenceNode);
      }
    
      @Override
      public Set<N> nodes() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/StandardNetwork.java

        this.nodeConnections =
            (nodeConnections instanceof TreeMap)
                ? new MapRetrievalCache<N, NetworkConnections<N, E>>(nodeConnections)
                : new MapIteratorCache<N, NetworkConnections<N, E>>(nodeConnections);
        this.edgeToReferenceNode = new MapIteratorCache<>(edgeToReferenceNode);
      }
    
      @Override
      public Set<N> nodes() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/graph/AbstractUndirectedNetworkConnections.java

    import javax.annotation.CheckForNull;
    
    /**
     * A base implementation of {@link NetworkConnections} for undirected networks.
     *
     * @author James Sexton
     * @param <N> Node parameter type
     * @param <E> Edge parameter type
     */
    @ElementTypesAreNonnullByDefault
    abstract class AbstractUndirectedNetworkConnections<N, E> implements NetworkConnections<N, E> {
      /** Keys are edges incident to the origin node, values are the node at the other end. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

    import javax.annotation.CheckForNull;
    
    /**
     * A base implementation of {@link NetworkConnections} for directed networks.
     *
     * @author James Sexton
     * @param <N> Node parameter type
     * @param <E> Edge parameter type
     */
    @ElementTypesAreNonnullByDefault
    abstract class AbstractDirectedNetworkConnections<N, E> implements NetworkConnections<N, E> {
      /** Keys are edges incoming to the origin node, values are the source node. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/UndirectedMultiNetworkConnections.java

    import java.lang.ref.SoftReference;
    import java.util.Collections;
    import java.util.HashMap;
    import java.util.Map;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    
    /**
     * An implementation of {@link NetworkConnections} for undirected networks with parallel edges.
     *
     * @author James Sexton
     * @param <N> Node parameter type
     * @param <E> Edge parameter type
     */
    @ElementTypesAreNonnullByDefault
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/UndirectedNetworkConnections.java

    import com.google.common.collect.HashBiMap;
    import com.google.common.collect.ImmutableBiMap;
    import java.util.Collections;
    import java.util.Map;
    import java.util.Set;
    
    /**
     * An implementation of {@link NetworkConnections} for undirected networks.
     *
     * @author James Sexton
     * @param <N> Node parameter type
     * @param <E> Edge parameter type
     */
    @ElementTypesAreNonnullByDefault
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/AbstractDirectedNetworkConnections.java

    import javax.annotation.CheckForNull;
    
    /**
     * A base implementation of {@link NetworkConnections} for directed networks.
     *
     * @author James Sexton
     * @param <N> Node parameter type
     * @param <E> Edge parameter type
     */
    @ElementTypesAreNonnullByDefault
    abstract class AbstractDirectedNetworkConnections<N, E> implements NetworkConnections<N, E> {
      /** Keys are edges incoming to the origin node, values are the source node. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.5K bytes
    - Viewed (0)
Back to top