contains Path.isSameArcs comparison function