NodeData - shirabs/Ex_2 GitHub Wiki

NodeData

Represents node in graph :


  • private String type="NodeData"
  • private Point3D location;
  • private int key;
  • private double weight;
  • private int tag;
  • private String info;
  • public static int id=1;

Constructors

Empty Constructor.

Constructor that get Point 3D(X,Y,Z).


Methods

Return key

Return Location of Point 3D.

Create new 3D Point.

Return the wight of node.

Set the wight of node.

Return String of node.

Set string of node.

Return the color of the node.

Set the color of the node.

Return String of key , location , tag , whight.