target.putLabel(MAX_PATH_LENGTH, length + t);
}
// Create the path and add to the result
CausativePath compPath = new CausativePath();
for (Node node : path)
{
compPath.addNode(node);
if (node.hasLabel(EDGE))
{
compPath.addEdge((Edge) node.getLabel(EDGE));
}
}
compPath.addNode(target);
assert compPath.getLength() == length;
if (!result.containsKey(target))
{
result.put(target, new HashMap<Integer, List<CausativePath>>());
}