Uses of Interface
com.google.common.graph.Network
-
Packages that use Network Package Description com.google.common.graph An API for representing graph (node and edge) data. -
-
Uses of Network in com.google.common.graph
Subinterfaces of Network in com.google.common.graph Modifier and Type Interface Description interface
MutableNetwork<N,E>
A subinterface ofNetwork
which adds mutation methods.Classes in com.google.common.graph that implement Network Modifier and Type Class Description class
AbstractNetwork<N,E>
This class provides a skeletal implementation ofNetwork
.(package private) class
ForwardingNetwork<N,E>
A class to allowNetwork
implementations to be backed by a provided delegate.private static class
Graphs.TransposedNetwork<N,E>
class
ImmutableNetwork<N,E>
ANetwork
whose elements and structural relationships will never change.(package private) class
StandardMutableNetwork<N,E>
Standard implementation ofMutableNetwork
that supports both directed and undirected graphs.(package private) class
StandardNetwork<N,E>
Standard implementation ofNetwork
that supports the options supplied byNetworkBuilder
.Fields in com.google.common.graph declared as Network Modifier and Type Field Description private Network<N,E>
Graphs.TransposedNetwork. network
Methods in com.google.common.graph that return Network Modifier and Type Method Description (package private) abstract Network<N,E>
ForwardingNetwork. delegate()
(package private) Network<N,E>
Graphs.TransposedNetwork. delegate()
static <N,E>
Network<N,E>Graphs. transpose(Network<N,E> network)
Returns a view ofnetwork
with the direction (if any) of every edge reversed.Methods in com.google.common.graph with parameters of type Network Modifier and Type Method Description 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 ofnetwork
with the same nodes and edges.static <N,E>
ImmutableNetwork<N,E>ImmutableNetwork. copyOf(Network<N,E> network)
Returns an immutable copy ofnetwork
.private static <N,E>
java.util.Map<E,EndpointPair<N>>AbstractNetwork. edgeIncidentNodesMap(Network<N,E> network)
static <N,E>
NetworkBuilder<N,E>NetworkBuilder. from(Network<N,E> network)
Returns aNetworkBuilder
initialized with all properties queryable fromnetwork
.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 ifnetwork
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 ofnetwork
induced bynodes
.(package private) static <N> EndpointPair<N>
EndpointPair. of(Network<?,?> network, N nodeU, N nodeV)
Returns anEndpointPair
representing the endpoints of an edge innetwork
.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 ofnetwork
with the direction (if any) of every edge reversed.Constructors in com.google.common.graph with parameters of type Network Constructor Description ImmutableNetwork(Network<N,E> network)
TransposedNetwork(Network<N,E> network)
-