Returns the value stored in this node. If the optional newValue
parameter is given, the value is set to the given value.
Adds the CSS class className
to the node and animates the changes.
Removes the CSS class className
from the node and animates the changes.
Toggles the CSS class className
of the node and animates the changes.
Return true/false based on if the node has the CSS class className
.
All edges in the structures are based on a common Edge type. They all have the functions below. Note, that you do not create edges in your code, they are created by the structures they are used in.
Returns the start node of this edge. If the optional node
parameter is given, sets the start node of this edge.
Returns the end node of this edge. If the optional node
parameter is given, sets the end node of this edge.
Returns the label attached to this edge.
Sets the value of the label attached to this edge.
Returns the weight of this edge.
Sets the weight of this edge.
Shows this edge if it isn’t visible already.
Hides this edge if it isn’t hidden already.
Returns true if this edge is visible, false if hidden.