dhart.spatialstructures.CalculateCrossSlope

dhart.spatialstructures.CalculateCrossSlope(g: Graph)

Calculate cross slope for every edge in a graph and store it as a new cost type.

Parameters:

g (Graph) – The graph of nodes and edges to calculate this score for

Postcondition:

The graph will be updated with a new cost type containing the results of this algorithm, asccessible with the key in CostAlgorithmKeys.CROSS_SLOPE.