def _mst_path(csgraph, predecessors, start, end):
    """Construct a path along the minimum spanning tree"""
    preds = predecessors[start]
    path = [end]
    while end != start:
        end = preds[start, end]
        path.append(end)
    return path[::-1]