public class ShortestPath.Path extends Object
Constructor and Description |
---|
Path(int[] path)
Creates a path from an array.
|
Modifier and Type | Method and Description |
---|---|
int[] |
getRawData()
Returns the raw path: Is ends with a species index and is composed of alternating indices of
species and reactions.
|
int[] |
getReactions()
Returns all the reactions on this path.
|
int[] |
getSpecies()
Returns all the species on this path.
|
String |
toString() |
public Path(int[] path)
path
- Arrays containing the network indices of the path's componentspublic int[] getRawData()
public int[] getSpecies()
public int[] getReactions()
Copyright © 2007–2021. All rights reserved.