Optional edgesAn array of edge data representing the initial edges.
Each edge must have a unique ID.
The source and target of each edge must be present in nodes.
[
{ id: 9, source: 1, target: 2, weight: 10 },
]
Optional nodesAn array of node data representing the initial nodes.
Each node must have a unique ID.
[
{ id: 1, color: 'red' },
{ id: 2, color: 'blue' },
]
Optional onA listener function which will be called with a GraphChangedEvent whenever a graph change happened.
Optional treeGenerated using TypeDoc
Options to create a graph.