DGraph - rotemish7/OOP_Ex3-4 GitHub Wiki
This class implements the interface graph. in this class we created some constructors for the user convineint to easily create a new graph.
This class represents the base of the graph structor,
meaning this class hold the main functions of the graph, such as: getNode,getEdge,connect,addNode,removeNode,removeEdge etc.
this functions adds or deletes the nodes or edges from the graph.
another two importent functions in this class are the getE and getV, this functions returns a collection of node/edges of the given graph.
This class is mainly based on two classes: node and edge. class node represents a node composed of a key, Point3D, weight, tag and info. whereas edge is composed of a source,destination and weight(the length of the edge).