new node(new_id, new_label)

Contructor for a BBOP graph model node.

Parameters

Name Type Optional Description

new_id

string

 

a unique id for the node

new_label

string

 

(optional) a user-friendly description of the node

Returns

this new bbop model node

Methods

clone() → node

Get a fresh new copy of the current node (using bbop.clone for metadata object). This includes copying the ID--you'd have to change it on your own.

Returns

node node

id(value) → string

Getter/setter for node id.

Parameter

Name Type Optional Description

value

string

 

(optional) new value for this property to take

Returns

string string

label(value) → string

Getter/setter for node label.

Parameter

Name Type Optional Description

value

string

 

(optional) new value for this property to take

Returns

string string

metadata(value) → any

Getter/setter for node metadata.

The metadata value does not necessarily have to be an atomic type.

Parameter

Name Type Optional Description

value

any

 

(optional) new value for this property to take

Returns

any value

type(value) → string

Getter/setter for node type.

Parameter

Name Type Optional Description

value

string

 

(optional) new value for this property to take

Returns

string string