Skip to content

@graphty/cytoscape-extensions / index / PathsResult

Interface: PathsResult ​

Defined in: cytoscape-extensions/src/algorithms.ts:196

Paths from one root, in the shape of Cytoscape's dijkstra.

Methods ​

distanceTo() ​

distanceTo(node): number

Defined in: cytoscape-extensions/src/algorithms.ts:198

Distance from the root; Infinity when unreachable.

Parameters ​

node ​

ElementRef

Returns ​

number


pathTo() ​

pathTo(node): CollectionReturnValue

Defined in: cytoscape-extensions/src/algorithms.ts:200

The path from the root, alternating node, edge, node; empty when unreachable.

Parameters ​

node ​

ElementRef

Returns ​

CollectionReturnValue