Extends
- EventEmitter
Members
edges :Array.<Edge>
Type:
- Array.<Edge>
(abstract) id :NodeId
Type:
(abstract) type :NodeType
Type:
Methods
addEdge(edge)
Add an edge to the node.
Parameters:
Name | Type | Description |
---|---|---|
edge |
Edge |
delete()
Delete the node.
Will also delete all edges attached to the node.
(abstract) extendJson() → {Object}
Hook for children to provide additional fields in the Node#toJson response.
Returns:
- Type
- Object
toJson() → {NodeJson}
Get a JSON representation of the Node.
Returns:
- Type
- NodeJson
(abstract) update(raw)
Update the Node's data.
Parameters:
Name | Type | Description |
---|---|---|
raw |
Object |