Implement only node adding in a graph structure

Implement the constructor in graph class
Implement only adding in a graph structure.