graph-matrix-tarjan