multiple paths on a graph