YaccConstructor / QuickGraph

Generic Graph Data Structures and Algorithms for .NET
http://yaccconstructor.github.io/QuickGraph/
Microsoft Public License
523 stars 198 forks source link

Override Vertex Id Mapping #205

Open tdashworth opened 2 years ago

tdashworth commented 2 years ago

I see the following code in QuickGraph.Graphviz.GraphvizAlgorithm.Generate which defines the id used for each vertex:

int i = 0;
foreach (TVertex v in this.VisitedGraph.Vertices)
    this.vertexIds.Add(v, i++);

It would be nice to be able to override the default 1, 2, 3, n to maybe something defined in TVertex.