Creates a new Graph.
The graph schema.
Optional
options: { The graph configuration. Optional.
If true, multiple edges connected between two nodes will be spaced apart.
The context menu items to add to the graph.
Used to override the graph's default styling. Check ./constants.js for a full list of style properties.
If supplied, the graph will be attached to this element.
Whether the graph should show an edge highlight effect when the mouse is hovering over edges. Optional. Defaults to true.
Whether the graph should increment the node name when a node with the same name already exists. Optional. Defaults to false.
The graph data to initialize the graph with.
If true, the graph will not update its data and view upon user interaction. Instead, these interactions can be handled explicitly by listening to fired events. Optional. Defaults to false.
Whether the graph is read only. Optional. Defaults to false.
Whether the graph should restrict the translate graph operation to the graph area. Optional. Defaults to false.
The current graph data. Contains an object with any nodes and edges present in the graph. This can be passed into the graph constructor to reload the current graph.
Add an event listener to the graph.
The name of the event to listen for.
The callback to call when the event is triggered.
Represents a new Graph.