path_vector function

Record a path through all nodes of an adjacency matrix