Fix vertiex re-ordering issue in graph converter