Equivalence between graph-based and sequence-based extensive form games