Node ,edge - HilaShoshan/ObjectOriented_Task2 GitHub Wiki

Node class:

we have getters and setters of:

  • key (the ID of every vertex),
  • weight (a variable that will save the distances at shortestPathDist method)
  • location (Where it is located on the number axis),
  • info (string variable),
  • Tag (int variable),
  • HashMap <INTEGER, edge_data> (to contains the neighbors of every vertex),
  • isVisit (int variable).

edge class: we have getters and setters of:

  • src (the ID of every vartex),
  • dest (the ID of the neighbors),
  • weight (how much it cost to go over the edge),
  • info (string variable),
  • tag (int variable).