I have a directed acyclic graph $g$, and I'd like to re-order the vertices in this graph object such that when I call
VertexList[myGraph]
the vertices appear in topologically sorted order. The naive solution is to make a new graph as follows:
myGraph = Graph[TopologicalSort[g], EdgeList[g]]
but it seems that the graph object sorts its vertices. So this method is no good.

TopologicalSort[g]andVertexList[myGraph]. They're the same. The first element is the source and the last is the sink. I think you've just been looking at the values for the wrong graph. – rm -rf♦ Jun 3 '12 at 5:08VertexListorEdgeListhaving a specific order. You can always create your own edge/vertex list with any order you like. What kind of application do you need this for? – Szabolcs Jun 4 '12 at 8:29