Interface GraphChangedEvent<N, E>

Type Parameters

Hierarchy

  • GraphChangedEvent

Properties

Properties

changes: GraphChange<N, E>[]

Atomic changes that have occurred in the graph since the last time graph.onChanged was triggered.

changes are ordered by the time they occurred.

Each change object is a smallest unit of change that can be made to a graph, including addition, removal, or modification of nodes or edges.

You can call mergeChanges to merge them into a GraphDiff.

graph: Graph<N, E>

The Graph instance which triggered this event.

Generated using TypeDoc