Node - NoaAizer/Graphs GitHub Wiki

We implemented node_data interface in Node.

key- The ID of the node.
location- The location of the code.
weight - holds the weight of the node.
tag- Integer useful for algorithems.
info- a matadata String useful for algorithems.

Node function:

  • Constructors- create a new Node from the data parameters.
  • getKey() - Return the key (id) associated with this node.
  • getLocation() - Return the location (of applicable) of this node, if none return null.
  • setLocation(Point3D p) - Allows changing this node's location (p is a new location (position) of this node).
  • getWeight() - Return the weight associated with this node.
  • setWeight - Allows changing this node's weight ( w - the new weight).
  • getInfo() - return the remark (meta data) associated with this node.
  • setInfo - Allows changing the remark (meta data) associated with this node.
  • getTag() - Temporal data (aka color: e,g, white, gray, black) which can be used be algorithms.
  • setTag - Allow setting the "tag" value for temporal marking an node - common practice for marking by algorithms (t - the new value of the tag).
⚠️ **GitHub.com Fallback** ⚠️