Node

mentality. Node

Sequential graph is a linear stack of layers.

Constructor

new Node(nameopt)

Source:

Constructor.

Parameters:
Name Type Attributes Default Description
name string <optional>
utils.getName(this.getType())

Name of the Node.

Members

to :Array.<Node>

Source:

Link to other nodes.

Type:
  • Array.<Node>

Methods

getName() → {string}

Source:

Get name of the Node.

Returns:

Node's name.

Type
string

getType() → {string}

Source:

Get type of Node.

Returns:

Node's type.

Type
string

toJson(optsopt) → {Object}

Source:

Export node as JSON.

Parameters:
Name Type Attributes Default Description
opts Object <optional>
{}

Options.

Returns:

Node's properties.

Type
Object