graphviz icon indicating copy to clipboard operation
graphviz copied to clipboard

How to set notes for an edge?

Open pezsgo12 opened this issue 7 years ago • 1 comments

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

pezsgo12 avatar Nov 05 '17 09:11 pezsgo12

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);

codingyourlife avatar Mar 08 '18 02:03 codingyourlife