Represents a node in a network layout. This class mostly serves to document the attributes that are used on nodes in network layouts. (Note that hierarchical nodes place additional requirements on node representation, vis Rubyvis::Dom::Node.)
The node index, zero-based. This attribute is populated automatically based on the index in the array returned by the <tt>nodes</tt> property. @type number
The node name; optional. If present, this attribute will be used to provide
the text for node labels. If not present, the label text will fallback to
The node value; optional. If present, and no
attribute is present, the node value will be used as the label text. This
attribute is also automatically populated if the nodes are specified as an
array of ‘primitives’, such as strings or numbers.