C# graph drawing library? [closed]

2019-01-12 22:55发布

问题:

I'm looking for a (free) library which allows me to draw a CFG (control flow graph). Something like yFiles, but free or preferably open source? Ideally this library would allow the user to navigate the graph (and modify it), i.e. the graph isn't just a static a priori rendered bitmap. Ideas?

Update:
Glee in combination with the mentioned QuickGraph library seems to work pretty nice. thx

Update2: Graph# seems to be the most powerful library currently. There is also a nice tutorial on how to use it.

回答1:

You might want to check out QuickGraph.

NodeXL might also be of interest (visualization library). It's WPF, but you can use a container to host it if you need WinForms.



回答2:

Try out this (Efficient Sugiyama algorithm is your friend):

Graph#



回答3:

I use GraphViz to generate this sort of graph. My app generates the .dot file that can then is then passed into GraphViz. It supports a load of file formats, such as bmp, jpg, png, pdf, svg etc etc.



回答4:

https://graphx.codeplex.com/

Inspired by Graph#, actively developed and much more extensible.