Graph

Graph

new Graph(json)

Directed graph.

Properties:
Name Type Description
json.nodes object

key-value pairs of nodes

json.edges object

key-value pairs of edges, source => [target1, target2, ...]

Source:
Parameters:
Name Type Description
json object

Methods

calcStartEnd() → {Graph}

Calculate start and end nodes.

Source:
Returns:
Type:
Graph