Supporting class for cTopology, represents a node in the graph.
◆ Node()
Node |
( |
int |
moduleId = -1 | ) |
|
|
inline |
◆ getModuleId()
int getModuleId |
( |
| ) |
const |
|
inline |
Returns the ID of the network module to which this node corresponds.
◆ getModule()
◆ getWeight()
double getWeight |
( |
| ) |
const |
|
inline |
Returns the weight of this node. Weight is used with the weighted shortest path finder methods of cTopology.
◆ setWeight()
void setWeight |
( |
double |
d | ) |
|
|
inline |
Sets the weight of this node. Weight is used with the weighted shortest path finder methods of cTopology.
◆ isEnabled()
Returns true of this node is enabled. This has significance with the shortest path finder methods of cTopology.
◆ enable()
Enable this node. This has significance with the shortest path finder methods of cTopology.
◆ disable()
Disable this node. This has significance with the shortest path finder methods of cTopology.
◆ getNumInLinks()
int getNumInLinks |
( |
| ) |
const |
|
inline |
Returns the number of incoming links to this graph node.
◆ getLinkIn()
Returns ith incoming link of graph node.
◆ getNumOutLinks()
int getNumOutLinks |
( |
| ) |
const |
|
inline |
Returns the number of outgoing links from this graph node.
◆ getLinkOut()
Returns ith outgoing link of graph node.
◆ getDistanceToTarget()
double getDistanceToTarget |
( |
| ) |
const |
|
inline |
Returns the distance of this node to the target node.
◆ getNumPaths()
int getNumPaths |
( |
| ) |
const |
|
inline |
Returns the number of shortest paths towards the target node. (There may be several paths with the same length.)
◆ getPath()
Returns the next link in the ith shortest paths towards the target node. (There may be several paths with the same length.)
The documentation for this class was generated from the following file: