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 ofNetworkConnections
for undirected networks.
-
-
Field Summary
-
Fields inherited from class com.google.common.graph.AbstractUndirectedNetworkConnections
incidentEdgeMap
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UndirectedNetworkConnections(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(java.lang.Object 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, incidentEdges, inEdges, oppositeNode, 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(java.lang.Object node)
Description copied from interface:NetworkConnections
Returns the set of edges connecting the origin node tonode
. For networks without parallel edges, this set cannot be of size greater than one.
-
-