An edge in the link graph. More...
#include <linkgraph.h>
Public Member Functions | |
void | Init (uint distance=0) |
Create an edge. | |
Data Fields | |
uint | distance |
Length of the link. | |
uint | capacity |
Capacity of the link. | |
uint | usage |
Usage of the link. | |
Date | last_update |
When the link was last updated. | |
NodeID | next_edge |
Destination of next valid edge starting at the same source node. |
An edge in the link graph.
Corresponds to a link between two stations or at least the distance between them. Edges from one node to itself contain the ID of the opposite Node of the first active edge (i.e. not just distance) in the column as next_edge.
Definition at line 62 of file linkgraph.h.
void LinkGraph::BaseEdge::Init | ( | uint | distance = 0 |
) | [inline] |
Create an edge.
distance | Length of the link as manhattan distance. |
Definition at line 37 of file linkgraph.cpp.
References capacity, INVALID_DATE, last_update, next_edge, and usage.
Referenced by LinkGraph::AddNode().