updated graphLinks to graphLinks_i to specify incidence matrices