private static <N,E> Function<E,N> |
ImmutableNetwork.adjacentNodeFn(Network<N,E> network,
N node) |
|
private static <N,E> NetworkConnections<N,E> |
ImmutableNetwork.connectionsOf(Network<N,E> network,
N node) |
|
static <N,E> MutableNetwork<N,E> |
Graphs.copyOf(Network<N,E> network) |
Creates a mutable copy of network with the same nodes and edges.
|
static <N,E> ImmutableNetwork<N,E> |
ImmutableNetwork.copyOf(Network<N,E> network) |
Returns an immutable copy of network .
|
static boolean |
Graphs.equivalent(Network<?,?> networkA,
Network<?,?> networkB) |
Returns true if networkA and networkB have the same elements and the
same relationships between elements, as exposed via the Network interface.
|
static <N,E> NetworkBuilder<N,E> |
NetworkBuilder.from(Network<N,E> network) |
Returns a NetworkBuilder initialized with all properties queryable from
network .
|
private static <N,E> java.util.Map<E,N> |
ImmutableNetwork.getEdgeToReferenceNode(Network<N,E> network) |
|
private static <N,E> java.util.Map<N,NetworkConnections<N,E>> |
ImmutableNetwork.getNodeConnections(Network<N,E> network) |
|
static boolean |
Graphs.hasCycle(Network<?,?> network) |
Returns true if network has at least one cycle.
|
static <N,E> MutableNetwork<N,E> |
Graphs.inducedSubgraph(Network<N,E> network,
java.lang.Iterable<? extends N> nodes) |
Returns the subgraph of network induced by nodes .
|
(package private) static <N> EndpointPair<N> |
EndpointPair.of(Network<?,?> network,
N nodeU,
N nodeV) |
Returns an EndpointPair representing the endpoints of an edge in network .
|
private static <N,E> Function<E,N> |
ImmutableNetwork.sourceNodeFn(Network<N,E> network) |
|
private static <N,E> Function<E,N> |
ImmutableNetwork.targetNodeFn(Network<N,E> network) |
|
static <N,E> Network<N,E> |
Graphs.transpose(Network<N,E> network) |
Returns a view of network with the direction (if any) of every edge reversed.
|