getNodes getEdges