node - YosefTwito/PackIt GitHub Wiki

  • This class represents the set of operations applicable on a
  • node (vertex) in a (directional) weighted graph.
  • @authors YosefTwito and EldarTakach

The node:

node's parameters:

  1. int key - the number of the node (not necessarily sequential, once set - final).
  2. int tag - assistant tag for functions.
  3. double weight - to save the weight of the node.
  4. String info - save extra info (might be empty).
  5. Point3D location - to present the node on the graph.

The methods of the node are:

Getters/Setters :

  • To adjust the basic parameters (note that key cannot be change !).

Constructors:

  1. node() - empty constructor.
  2. node(node o). (copy, to handle some functions).
  3. node(Point3D location).