public abstract class GraphModels extends Object
Modifier | Constructor and Description |
---|---|
protected |
GraphModels()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <V> Multimap<V,V> |
adjacency(RootedGraphModel<V> model) |
static <V> GraphModel<V> |
adjacent(Multimap<V,? extends V> m) |
static <V> RootedGraphModel<V> |
adjacentAllRoots(Multimap<V,? extends V> m) |
static <V,A> AdHocAnnotatedGraphModel<V,A> |
annotate(GraphModel<V> parent,
Class<A> annotationType) |
static <V> GraphModel<V> |
cache(GraphModel<V> parent) |
<V> void |
dfs(Sink<? super V> sink,
boolean multiply,
RootedGraphModel<V> graph) |
static <V> void |
dfsInteractive(Function<? super V,? extends Collection<? extends V>> fun,
boolean multiply,
V... roots) |
static <V,W> RootedGraphModel<W> |
map(Function<? super V,? extends W> fun,
RootedGraphModel<V> parent) |
static <V> Collection<V> |
neighbours() |
static <V> Collection<V> |
neighbours(V... vs) |
static <V> Collection<V> |
neighbours(V v) |
static <V> Collection<V> |
neighboursSet(V... vs) |
static <V extends Node<V>> |
nodes() |
static <V> TopologicalSorter<V> |
postorder(RootedGraphModel<V> model) |
static <V> TopologicalSorter<V> |
preorder(RootedGraphModel<V> model) |
static <V> TopologicalSorter<V> |
reachable(RootedGraphModel<V> model) |
static <V> AdHocRootedGraphModel<V> |
roots(GraphModel<V> parent,
Collection<? extends V> roots) |
static <V> AdHocRootedGraphModel<V> |
roots(GraphModel<V> parent,
V... roots) |
static <V> SCCGraphModel<V> |
sccs(RootedGraphModel<V> parent) |
static <V> SCCGraphModel<V> |
sccs(RootedGraphModel<V> parent,
boolean retainCycles) |
static <V> TopologicalSorter<V> |
topsort(RootedGraphModel<V> model,
TraversalOrder order,
boolean weak) |
@Deprecated protected GraphModels()
public static <V extends Node<V>> GraphModel<V> nodes()
public static <V> Collection<V> neighbours()
public static <V> Collection<V> neighbours(V v)
@SafeVarargs public static <V> Collection<V> neighbours(V... vs)
@SafeVarargs public static <V> Collection<V> neighboursSet(V... vs)
@SafeVarargs public static <V> AdHocRootedGraphModel<V> roots(GraphModel<V> parent, V... roots)
public static <V> AdHocRootedGraphModel<V> roots(GraphModel<V> parent, Collection<? extends V> roots)
public static <V,A> AdHocAnnotatedGraphModel<V,A> annotate(GraphModel<V> parent, Class<A> annotationType)
public static <V> SCCGraphModel<V> sccs(RootedGraphModel<V> parent)
public static <V> SCCGraphModel<V> sccs(RootedGraphModel<V> parent, boolean retainCycles)
public static <V> Multimap<V,V> adjacency(RootedGraphModel<V> model)
public static <V> GraphModel<V> adjacent(Multimap<V,? extends V> m)
public static <V> RootedGraphModel<V> adjacentAllRoots(Multimap<V,? extends V> m)
public static <V> TopologicalSorter<V> topsort(RootedGraphModel<V> model, TraversalOrder order, boolean weak)
public static <V> TopologicalSorter<V> reachable(RootedGraphModel<V> model)
public static <V> TopologicalSorter<V> preorder(RootedGraphModel<V> model)
public static <V> TopologicalSorter<V> postorder(RootedGraphModel<V> model)
public static <V,W> RootedGraphModel<W> map(Function<? super V,? extends W> fun, RootedGraphModel<V> parent)
public static <V> GraphModel<V> cache(GraphModel<V> parent)
public <V> void dfs(Sink<? super V> sink, boolean multiply, RootedGraphModel<V> graph)
@SafeVarargs public static <V> void dfsInteractive(Function<? super V,? extends Collection<? extends V>> fun, boolean multiply, V... roots)
see also the complete user documentation .