Optional
template: GraphTemplateProtected
_connectionsProtected
_destroyingProtected
_loadingProtected
_nodesOptional
templateWhether the graph is currently in the process of destroying itself
Whether the graph is currently in the process of loading a saved graph
List of all nodes in this graph
Add a connection to the list of connections.
Start interface for the connection
Target interface for the connection
The created connection. If no connection could be created, returns undefined
.
Add a node to the list of nodes.
Instance of a node
Instance of the node or undefined if the node was not added
Checks, whether a connection between two node interfaces would be valid.
The starting node interface (must be an output interface)
The target node interface (must be an input interface)
Whether the connection is allowed or not.
Finds the Node with the provided id, as long as it exists in this graph
id of the Node to find
The Node if found, otherwise undefined
Finds the NodeInterface with the provided id, as long as it exists in this graph
id of the NodeInterface to find
The NodeInterface if found, otherwise undefined
Load a state
State to load
An array of warnings that occured during loading. If the array is empty, the state was successfully loaded.
Remove a connection from the list of connections.
Connection instance that should be removed.
Removes a node from the list. Will also remove all connections from and to the node.
Reference to a node in the list.
Save a state
Current state
List of all connections in this graph