new FunctionalGraph()
- Source:
Extends
Members
children :Array.<Node>
- Source:
- Inherited From:
Children nodes.
Type:
- Array.<Node>
to :Array.<Node>
- Source:
- Inherited From:
Link to other nodes.
Type:
- Array.<Node>
Methods
addNode(node)
- Source:
- Inherited From:
Add a node as a child.
Parameters:
Name | Type | Description |
---|---|---|
node |
Node | Child node. |
addNodes(node)
- Source:
- Inherited From:
Add multiple nodes as a children.
Parameters:
Name | Type | Description |
---|---|---|
node |
Array.<Node> | Child nodes. |
getName() → {string}
- Source:
- Inherited From:
Get name of the Node.
Returns:
Node's name.
- Type
- string
getType() → {string}
- Source:
- Inherited From:
Get type of Node.
Returns:
Node's type.
- Type
- string
toJson(optsopt) → {Object}
- Source:
- Overrides:
Export node as JSON.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
opts |
Object |
<optional> |
{}
|
Options. |
Returns:
Node's properties.
- Type
- Object