IsoCostListN |
Top Previous Next |
This method calculates an isochrone from node, which extends until the first N nodes in NL has been reached.
If MaxCost has been set, it may stop sooner.
Result is returned in IL as a sorted index into NL. Length of IL may be < N, if not all nodes in NL is reached.
Example: NL = {100, 200, 300, 400, 500, 600} N = 3 cost(100) = 32 cost(200) = 45 cost(300) = 103 cost(400) = 77 cost(500) = 80 cost(600) = 10
Output: IL = {5, 0, 1} Cost of index 5, 0 and 1 is 10, 32 and 45.
Syntax: IsoCostListN(node: integer; NL, IL: TIntegerList; N: integer)
|