edited to check network graphs