public class ShortestPath extends AnalysisBase
computePath methods) or paths to all species (by computePaths).
A NodeChecker can optionally be given for each method.| Modifier and Type | Class and Description |
|---|---|
class |
ShortestPath.Path
Encapsulates a path from one species to another.
|
| Constructor and Description |
|---|
ShortestPath(Network network)
Creates the class with the specified network.
|
| Modifier and Type | Method and Description |
|---|---|
ShortestPath.Path |
computePath(NodeChecker checker,
String toSpecies,
String... species)
Compute the shortest paths from some source species to one species by only using parts of the
network specified by the
NodeChecker checker. |
ShortestPath.Path |
computePath(String toSpecies,
String... species)
Compute the shortest paths from some source species to one species.
|
ShortestPath.Path[] |
computePaths(NodeChecker checker,
String... species)
Compute all shortest paths from some source species by only using parts of the network
specified by the
NodeChecker checker. |
ShortestPath.Path[] |
computePaths(String... species)
Compute all shortest paths from some source species.
|
bfs, dfs, searchpublic ShortestPath(Network network)
network - the network where shortest paths shall be computedpublic ShortestPath.Path[] computePaths(String... species)
species - the names of the source speciesShortestPath.Pathpublic ShortestPath.Path[] computePaths(NodeChecker checker, String... species)
NodeChecker checker.species - the names of the source specieschecker - a NodeChecker for the searchShortestPath.Pathpublic ShortestPath.Path computePath(String toSpecies, String... species)
toSpecies - the name of the species where the shortest path should be computed tospecies - the names of the source speciesShortestPath.Pathpublic ShortestPath.Path computePath(NodeChecker checker, String toSpecies, String... species)
NodeChecker checker.checker - a NodeChecker for the searchtoSpecies - the name of the species where the shortest path should be computed tospecies - the names of the source speciesShortestPath.PathCopyright © 2007–2021. All rights reserved.