C#图形绘制库?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/737771/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 23:14:57  来源:igfitidea点击:

C# graph drawing library?

c#graphicsgraph-theory

提问by newgre

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?

我正在寻找一个(免费)库,它允许我绘制CFG(控制流图)。像yFiles 之类的东西,但是是免费的还是最好是开源的?理想情况下,该库将允许用户导航图形(并修改它),即图形不仅仅是静态的先验渲染位图。想法?

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

更新:
Glee与提到的 QuickGraph 库相结合似乎效果很好。谢谢

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

Update2:Graph#似乎是目前最强大的库。还有一个关于如何使用它的很好的教程

采纳答案by dommer

You might want to check out QuickGraph.

您可能想查看QuickGraph

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

NodeXL可能也很有趣(可视化库)。它是 WPF,但如果您需要 WinForms,您可以使用容器来承载它。

回答by Palesz

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

试试这个(高效的杉山算法是你的朋友):

Graph#

图形#

回答by Sean

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

我使用GraphViz来生成这种图表。我的应用程序生成.dot文件,然后可以将其传递到 GraphViz。它支持大量文件格式,如 bmp、jpg、png、pdf、svg 等。

回答by Alexander Smirnov

https://graphx.codeplex.com/

https://graphx.codeplex.com/

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

受 Graph# 的启发,积极开发且更具扩展性。