Add getNode and getEdge