Added functions to retrieve nodes, neighbors of a node.