323324325326327328329330331332333
CausativePath compPath = new CausativePath(); for (Node node : path) { compPath.addNode(node); if (node.hasLabel(EDGE)) { compPath.addEdge((Edge) node.getLabel(EDGE)); }
330331332333334335336337338339340
if (node.hasLabel(EDGE)) { compPath.addEdge((Edge) node.getLabel(EDGE)); } } compPath.addNode(target); assert compPath.getLength() == length; if (!result.containsKey(target)) {