getAllNodes(),getAllEdges(),getNode(),getEdge()-Necessary function added