Package com.google.common.graph
Class UndirectedNetworkConnections<N,E>
- java.lang.Object
-
- com.google.common.graph.AbstractUndirectedNetworkConnections<N,E>
-
- com.google.common.graph.UndirectedNetworkConnections<N,E>
-
- Type Parameters:
N- Node parameter typeE- Edge parameter type
- All Implemented Interfaces:
NetworkConnections<N,E>
final class UndirectedNetworkConnections<N,E> extends AbstractUndirectedNetworkConnections<N,E>
An implementation ofNetworkConnectionsfor undirected networks.
-
-
Field Summary
-
Fields inherited from class com.google.common.graph.AbstractUndirectedNetworkConnections
incidentEdgeMap
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUndirectedNetworkConnections(java.util.Map<E,N> incidentEdgeMap)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<N>adjacentNodes()java.util.Set<E>edgesConnecting(N node)Returns the set of edges connecting the origin node tonode.(package private) static <N,E>
UndirectedNetworkConnections<N,E>of()(package private) static <N,E>
UndirectedNetworkConnections<N,E>ofImmutable(java.util.Map<E,N> incidentEdges)-
Methods inherited from class com.google.common.graph.AbstractUndirectedNetworkConnections
addInEdge, addOutEdge, adjacentNode, incidentEdges, inEdges, outEdges, predecessors, removeInEdge, removeOutEdge, successors
-
-
-
-
Method Detail
-
of
static <N,E> UndirectedNetworkConnections<N,E> of()
-
ofImmutable
static <N,E> UndirectedNetworkConnections<N,E> ofImmutable(java.util.Map<E,N> incidentEdges)
-
adjacentNodes
public java.util.Set<N> adjacentNodes()
-
edgesConnecting
public java.util.Set<E> edgesConnecting(N node)
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.
-
-