Skip to content

Please include some more basic examples #60

Answered by mchubby
mchubby asked this question in Q&A
Discussion options

You must be logged in to vote

Option 2 (much simpler)

Described here: https://github.com/KeRNeLith/QuikGraph/wiki/Visualization-Using-Graphviz#graphviz-algorithm-by-extension

            var option2 = graph.ToGraphviz(algorithm =>
            {
                algorithm.FormatVertex +=
                    (_, eventArgs) => eventArgs.VertexFormat.Label = eventArgs.Vertex.ToString();
            });
            Console.WriteLine(option2);

HTML:

            var htmldot = graph.ToGraphviz(algorithm =>
            {
                algorithm.FormatVertex += (_, eventArgs) =>
                {
                    eventArgs.VertexFormat.IsHtmlLabel = true;
                    eventArgs.VertexFormat.Label = $"<U>{eventArgs.Ve…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mchubby
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@KeRNeLith
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants