updated graph-theory