|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindfusion.diagramming.jlayout.PathFinder
public class PathFinder
Constructor Summary | |
---|---|
PathFinder()
|
Method Summary | |
---|---|
static PathList |
findAllCycles(Graph graph)
|
static PathList |
findAllPaths(Graph graph,
Node from,
Node to)
Finds and returns all paths starting from node 'from' and ending at node 'to'. |
static Path |
findCycle(Graph graph)
Detects whether there is a cycle in a graph. |
static Path |
findCycle(Graph graph,
Node participant)
Detects whether the specified node participates in a cycle. |
static Path |
findLongestPath(Graph graph)
Finds the longest path in a graph. |
static Path |
findLongestPath(Graph graph,
long timeLimit)
Finds the longest path in the graph. |
static Path |
findLongestPath(Graph graph,
Node from,
Node to)
Finds the longest path between two nodes. |
static Path |
findShortestPath(Graph graph,
Node from,
Node to)
Finds and returns the shortest path between from and to. |
static Path |
findShortestPath(Graph graph,
Node from,
Node to,
boolean useNodeWeights,
boolean useLinkWeights)
Finds and returns the shortest path between from and to, considering the weight of the nodes, the weight of the links or both. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathFinder()
Method Detail |
---|
public static PathList findAllPaths(Graph graph, Node from, Node to)
public static Path findShortestPath(Graph graph, Node from, Node to)
public static Path findShortestPath(Graph graph, Node from, Node to, boolean useNodeWeights, boolean useLinkWeights)
public static Path findLongestPath(Graph graph, Node from, Node to)
public static Path findLongestPath(Graph graph)
public static Path findLongestPath(Graph graph, long timeLimit)
public static Path findCycle(Graph graph, Node participant)
public static Path findCycle(Graph graph)
public static PathList findAllCycles(Graph graph)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |