A EdgeRouterPath represents the result of a path search as a list of consecutive CellEntrances.
Inheritance Hierarchy
EdgeRouterPath
Remarks
A path starts with a CellEntrance for a PartitionCell of the source node and ends with one for a PartitionCell of the target node.
Type Details
- yfiles module
- router-polyline
- yfiles-umd modules
- layout-area, layout-multipage, layout-orthogonal-compact, layout, router-bus, router-polyline
- Legacy UMD name
- yfiles.router.Path
See Also
Constructors
Creates a new instance of EdgeRouterPath for the given edge, cell entrances and cost.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- entrances - IList<Object>
- the list of CellEntrance objects describing the edge path from source node to target node
- cost - number
- the overall cost of this path
Methods
Returns the CellEntrance at the given position of this path.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- position - number
- the position of the CellEntrance to return
Returns
- ↪CellEntrance
- the CellEntrance at the given position of this path
See Also
Returns the number of CellEntrance objects in this path.
Returns
- ↪number
- the number of CellEntrance objects in this path
Returns the position of the first occurrence of the given CellEntrance in this path, or -1
if this path does not contain this CellEntrance.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- entrance - CellEntrance
- the CellEntrance for which the position is retrieved
Returns
- ↪number
- the position of the first occurrence of the given CellEntrance in this path, or
-1
if this path does not contain this CellEntrance
Replaces the CellEntrance at the given position of this path with the given CellEntrance.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- position - number
- the position of the CellEntrance to replace
- entrance - CellEntrance
- the CellEntrance to be stored at the given position