fixed graph-matrix