Fixed a stupid bug in invGenGraph.