Changed indexing of transitions 2 string to start at 0. hypergraph function uses lattice now.