Changing the first/follow set calculation so that they are computed before graph creation.