public abstract class GraphAlgorithms
extends java.lang.Object
Constructor and Description |
---|
GraphAlgorithms() |
Modifier and Type | Method and Description |
---|---|
abstract <Node> void |
collectOutsRecursively(Graph<Node> graph,
Node start,
java.util.Set<? super Node> set)
Adds start node and all its outs to given set recursively.
|
abstract <Node> Graph<Chunk<Node>> |
computeSCCGraph(Graph<Node> graph) |
abstract <Node> java.util.Collection<Chunk<Node>> |
computeStronglyConnectedComponents(Graph<Node> graph) |
abstract <Node> java.util.Set<java.util.List<Node>> |
findCycles(Graph<Node> graph,
Node node) |
abstract <Node> java.util.List<java.util.List<Node>> |
findKShortestPaths(Graph<Node> graph,
Node start,
Node finish,
int k,
ProgressIndicator progressIndicator) |
abstract <Node> java.util.List<Node> |
findShortestPath(Graph<Node> graph,
Node start,
Node finish)
Deprecated.
use more generic
findShortestPath(InboundSemiGraph, Object, Object) instead |
abstract <Node> java.util.List<Node> |
findShortestPath(InboundSemiGraph<Node> graph,
Node start,
Node finish) |
static GraphAlgorithms |
getInstance() |
abstract <Node> Graph<Node> |
invertEdgeDirections(Graph<Node> graph) |
abstract <Node> java.util.List<java.util.List<Node>> |
removePathsWithCycles(java.util.List<? extends java.util.List<Node>> paths) |
public static GraphAlgorithms getInstance()
@Deprecated public abstract <Node> java.util.List<Node> findShortestPath(Graph<Node> graph, Node start, Node finish)
findShortestPath(InboundSemiGraph, Object, Object)
insteadpublic abstract <Node> java.util.List<Node> findShortestPath(InboundSemiGraph<Node> graph, Node start, Node finish)
public abstract <Node> java.util.List<java.util.List<Node>> findKShortestPaths(Graph<Node> graph, Node start, Node finish, int k, ProgressIndicator progressIndicator)
public abstract <Node> java.util.Set<java.util.List<Node>> findCycles(Graph<Node> graph, Node node)
public abstract <Node> java.util.List<java.util.List<Node>> removePathsWithCycles(java.util.List<? extends java.util.List<Node>> paths)
public abstract <Node> java.util.Collection<Chunk<Node>> computeStronglyConnectedComponents(Graph<Node> graph)
public abstract <Node> void collectOutsRecursively(Graph<Node> graph, Node start, java.util.Set<? super Node> set)
start
- node to start fromset
- set to be populated