C# .NET 图形库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1578493/
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
.NET graph library around?
提问by devoured elysium
I am looking for Graph libraries for .net. Are there any out?
我正在寻找 .net 的图形库。有出处吗?
ps: I mean GRAPH libraries, not graphics nor charting libraries!
ps:我的意思是 GRAPH 库,而不是图形或图表库!
edit: What I mean is graphs, from graph theory:
(source: sourceforge.net)
编辑:我的意思是图,来自图论:(
来源:sourceforge.net)
I also need it to have drawing capabilities.
我还需要它具有绘图功能。
采纳答案by Matt Breckon
Use a combination of QuickGraph (GitHub, CodePlex) and Graph# for WPF (GitHub fork, CodePlex) - both top notch libraries. They work really well for me but the documentation for Graph# is almost non-existant.
结合使用 QuickGraph(GitHub、CodePlex)和 Graph# for WPF(GitHub fork、CodePlex)——这两个都是一流的库。它们对我来说非常有效,但 Graph# 的文档几乎不存在。
回答by A S
Take a look at yWorks: http://www.yworks.com/en/index.html
看看 yWorks:http://www.yworks.com/en/index.html
There aren't a massive amount of good libraries out there, from what I've seen.
据我所知,那里没有大量好的图书馆。
回答by Doug McClean
There is QuickGraph, it works pretty well and has most of the basic algorithms.
有QuickGraph,它工作得很好并且具有大多数基本算法。
回答by JBland
Check out http://quickgraph.codeplex.com/They have support for visualization via DotViz and Glee.
查看 http://quickgraph.codeplex.com/他们通过 DotViz 和 Glee 支持可视化。
For visualization, i'd also check out
对于可视化,我也会查看
Though its flash, it seems very interesting, and they have at least tree visualization, though you may be able to coax some non-directed graphs out of it.
虽然它很闪,但它看起来很有趣,而且它们至少具有树形可视化功能,尽管您可以从中诱出一些非有向图。
回答by DrDee
You can use the NodeXL API from Microsoft Research at: http://www.codeplex.com/NodeXLbut a similar question has been asked at: https://stackoverflow.com/questions/44090/do-you-know-any-graph-visualization-libraries-for-net/
您可以使用 Microsoft Research 的 NodeXL API,网址为:http: //www.codeplex.com/NodeXL,但在以下网址提出了类似问题:https://stackoverflow.com/questions/44090/do-you-know-any -graph-visualization-libraries-for-net/
回答by Autodidact
回答by Emmanuel
I haven't tried it yet but ran across an interesting offering from MS Research for visualizing directed graphs Microsoft Automatic Graph Layout.
我还没有尝试过,但是遇到了 MS Research 提供的一个有趣的产品,用于可视化有向图Microsoft Automatic Graph Layout。
Try using "directed graph" or "digraph" for search terms. I get a lot of hits.
尝试使用“有向图”或“有向图”作为搜索词。我得到了很多点击。
回答by Walter
We've used ZedGraphwhich is an Open Source project written in C#, so you can tweak it if you feel it is necessary. It served our needs which sound like they're very close to what you described. There's even a wiki sitefor the project with some pretty good samples.
我们使用了ZedGraph,它是一个用 C# 编写的开源项目,因此如果您觉得有必要,可以对其进行调整。它满足了我们的需求,听起来它们与您所描述的非常接近。该项目甚至还有一个wiki 站点,其中包含一些非常好的示例。
回答by Patrick from NDepend team
I am working in the NDepend team and we switched from GraphViz to MsAgl (Microsoft Automatic Graph Layout)in september 2008. The MsAgl license allows commercial utilisation. Here are a few sample pictures of MsAgl graphs integrated in NDepend(everything is interactive, nodes are movable/selectable/removable/clickable, edges are editable/selectable/removable/clickable, the layout is zoomable, and also, while it could be cleaner the MsAgl API is clean enough to work with):
我在 NDepend 团队工作,我们于 2008 年 9 月从 GraphViz 切换到MsAgl(Microsoft 自动图形布局)。 MsAgl 许可证允许商业使用。以下是集成在 NDepend 中的MsAgl 图的一些示例图片(一切都是交互式的,节点可移动/可选择/可移动/可点击,边缘可编辑/可选择/可移动/可点击,布局可缩放,而且,虽然它可以更干净MsAgl API 足够干净,可以使用):