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

pack-priv final Class DirectedNetworkConnections<N, E>

extends AbstractDirectedNetworkConnections<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 directed networks.
Author
James Sexton

Field Summary

Inherited from com.google.common.graph.AbstractDirectedNetworkConnections:
inEdgeMapoutEdgeMap

Constructor Summary

AccessConstructor and Description
pack-priv
DirectedNetworkConnections(Map<E, N> inEdgeMap, Map<E, N> outEdgeMap, int selfLoopCount)

Method Summary

Modifier and TypeMethod and Description
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> DirectedNetworkConnections<N, E>
of()

pack-priv static <N, E> DirectedNetworkConnections<N, E>
ofImmutable(Map<E, N> inEdges, Map<E, N> outEdges, int selfLoopCount)

public Set<N>
public Set<N>
Inherited from com.google.common.graph.AbstractDirectedNetworkConnections:
addInEdgeaddOutEdgeadjacentNodeadjacentNodesincidentEdgesinEdgesoutEdgesremoveInEdgeremoveOutEdge

Constructor Detail

DirectedNetworkConnectionsback to summary
pack-priv DirectedNetworkConnections(Map<E, N> inEdgeMap, Map<E, N> outEdgeMap, int selfLoopCount)

Method Detail

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> DirectedNetworkConnections<N, E> of()
ofImmutableback to summary
pack-priv static <N, E> DirectedNetworkConnections<N, E> ofImmutable(Map<E, N> inEdges, Map<E, N> outEdges, int selfLoopCount)
predecessorsback to summary
public Set<N> predecessors()

Implements com.google.common.graph.NetworkConnections.predecessors.

Annotations
@Override
successorsback to summary
public Set<N> successors()

Implements com.google.common.graph.NetworkConnections.successors.

Annotations
@Override