DHART
|
Several cost algorithms that generate alternate costs for edges in a Graph. More...
Static Public Member Functions | |
static void | CalculateAndStoreCrossSlope (Graph g) |
Calculate the cross slope for every edge in a graph and store it as a new cost type within the graph. More... | |
static void | CalculateAndStoreEnergyExpenditure (Graph g) |
Calculate the energy expenditure for every edge in a graph and store it as a new cost type within the graph. More... | |
Several cost algorithms that generate alternate costs for edges in a Graph.
All algorithms in this class behave in a similar manner. They all accept a graph, perform some calculation then store their results as an alternate set of costs in the graph. The names used as keys to access each specific cost in the graph are available in the static CostAlgorithmNames class.
|
static |
Calculate the cross slope for every edge in a graph and store it as a new cost type within the graph.
g | The graph of nodes and edges to calculate this score for. |
g
is stored within g as an alternate cost accessible with CostAlgorithmNames.CrossSlope.
|
static |
Calculate the energy expenditure for every edge in a graph and store it as a new cost type within the graph.
g | The graph of nodes and edges to calculate this score for. |
g
is stored within g as an alternate cost accessible with CostAlgorithmNames.EnergyExpenditure