Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override Vertex Id Mapping #205

Open
tdashworth opened this issue Oct 5, 2021 · 0 comments
Open

Override Vertex Id Mapping #205

tdashworth opened this issue Oct 5, 2021 · 0 comments

Comments

@tdashworth
Copy link

tdashworth commented Oct 5, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant