Fixed getNodes and getEdges returning the ids instead of the nodes or edges.