Package com.google.common.graph
Class DirectedNetworkConnections<N,E>
java.lang.Object
com.google.common.graph.AbstractDirectedNetworkConnections<N,E>
com.google.common.graph.DirectedNetworkConnections<N,E>
- Type Parameters:
N- Node parameter typeE- Edge parameter type
- All Implemented Interfaces:
NetworkConnections<N,E>
An implementation of
NetworkConnections for directed networks.-
Field Summary
Fields inherited from class com.google.common.graph.AbstractDirectedNetworkConnections
inEdgeMap, outEdgeMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedgesConnecting(N node) Returns the set of edges connecting the origin node tonode.(package private) static <N,E> DirectedNetworkConnections<N, E> of()(package private) static <N,E> DirectedNetworkConnections<N, E> ofImmutable(Map<E, N> inEdges, Map<E, N> outEdges, int selfLoopCount) Methods inherited from class com.google.common.graph.AbstractDirectedNetworkConnections
addInEdge, addOutEdge, adjacentNode, adjacentNodes, incidentEdges, inEdges, outEdges, removeInEdge, removeOutEdge
-
Constructor Details
-
DirectedNetworkConnections
-
-
Method Details
-
of
-
ofImmutable
static <N,E> DirectedNetworkConnections<N,E> ofImmutable(Map<E, N> inEdges, Map<E, N> outEdges, int selfLoopCount) -
predecessors
-
successors
-
edgesConnecting
Description copied from interface:NetworkConnectionsReturns the set of edges connecting the origin node tonode. For networks without parallel edges, this set cannot be of size greater than one.
-