Change Graph() to retain the order of successors.