QuickGraph icon indicating copy to clipboard operation
QuickGraph copied to clipboard

Override Vertex Id Mapping

Open tdashworth opened this issue 3 years ago • 0 comments

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.

tdashworth avatar Oct 05 '21 18:10 tdashworth