Top Description Fields Constructors Methods
com.google.common.graph

pack-priv final Class UndirectedNetworkConnections<N, E>

extends AbstractUndirectedNetworkConnections<N, E>
Class Inheritance
Annotations
@ElementTypesAreNonnullByDefault
Type Parameters
<N>
Node parameter type
<E>
Edge parameter type
Static Imports
com.google.common.graph.GraphConstants.EXPECTED_DEGREE

An implementation of NetworkConnections for undirected networks.
Author
James Sexton

Field Summary

Inherited from com.google.common.graph.AbstractUndirectedNetworkConnections:
incidentEdgeMap

Constructor Summary

AccessConstructor and Description
pack-priv
UndirectedNetworkConnections(Map<E, N> incidentEdgeMap)

Method Summary

Modifier and TypeMethod and Description
public Set<N>
public Set<E>
edgesConnecting(N node)

Implements com.google.common.graph.NetworkConnections.edgesConnecting.

Returns the set of edges connecting the origin node to node.
pack-priv static <N, E> UndirectedNetworkConnections<N, E>
of()

pack-priv static <N, E> UndirectedNetworkConnections<N, E>
ofImmutable(Map<E, N> incidentEdges)

Inherited from com.google.common.graph.AbstractUndirectedNetworkConnections:
addInEdgeaddOutEdgeadjacentNodeincidentEdgesinEdgesoutEdgespredecessorsremoveInEdgeremoveOutEdgesuccessors

Constructor Detail

UndirectedNetworkConnectionsback to summary
pack-priv UndirectedNetworkConnections(Map<E, N> incidentEdgeMap)

Method Detail

adjacentNodesback to summary
public Set<N> adjacentNodes()

Implements com.google.common.graph.NetworkConnections.adjacentNodes.

Annotations
@Override
edgesConnectingback to summary
public Set<E> edgesConnecting(N node)

Implements com.google.common.graph.NetworkConnections.edgesConnecting.

Doc from com.google.common.graph.NetworkConnections.edgesConnecting.

Returns the set of edges connecting the origin node to node. For networks without parallel edges, this set cannot be of size greater than one.

Annotations
@Override
ofback to summary
pack-priv static <N, E> UndirectedNetworkConnections<N, E> of()
ofImmutableback to summary
pack-priv static <N, E> UndirectedNetworkConnections<N, E> ofImmutable(Map<E, N> incidentEdges)