id fix; return nodes, edges