-
Notifications
You must be signed in to change notification settings - Fork 1
node
YosefTwito edited this page Jan 1, 2020
·
11 revisions
- This class represents the set of operations applicable on a
- node (vertex) in a (directional) weighted graph.
- @authors YosefTwito and EldarTakach
- int key - the number of the node (not necessarily sequential, once set - final).
- int tag - assistant tag for functions.
- double weight - to save the weight of the node.
- String info - save extra info (might be empty).
- Point3D location - to present the node on the graph.
Getters/Setters :
- To adjust the basic parameters (note that key cannot be change !).
Constructors:
- node() - empty constructor.
- node(node o). (copy, to handle some functions).
- node(Point3D location).