graphviz
graphviz copied to clipboard
How to set notes for an edge?
Hi,
I have an issue with writing notes on the edges. Is that possible with this package? I don't really see any proper documentations for this project, what does the NodeStatement add to the graph? (since this class was my guess, that could do such thing for me) Thanks in advance!
Balázs
I took a look at the code and it seems to be a good idea to use new EdgeStatement(Id, Id, Dict) instead of EdgeStatement.For(Id, Id)
var graph = Graph.Undirected;
var edgeDict = new Dictionary<Id, Id> { { "label", "my edge lbl" } }.ToImmutableDictionary();
var edgeStatement = new EdgeStatement("A", "B", edgeDict);
graph = graph.Add(edgeStatement);