使用Graphsharp框架构建非有向图



是否可以在WPF中使用Graphsharp框架生成无向图?

我只能设法生成有向图,我试着自己搜索它,但没有弄清楚是否有合适的类内置来创建这样的无向图。

由于缺乏关于这个框架的文档,我请求你们的帮助。也许有人也有类似的问题。

您可能需要转换图形:

请参阅GraphLayout.cs,特别是所在位置

  • TGraph:class,IBididirectionalGraph
/// <summary>
/// THE layout control. Support layout, edge routing and overlap removal algorithms, with multiple layout states.
/// </summary>
/// <typeparam name="TVertex">Type of the vertices.</typeparam>
/// <typeparam name="TEdge">Type of the edges.</typeparam>
/// <typeparam name="TGraph">Type of the graph.</typeparam>
public partial class GraphLayout<TVertex, TEdge, TGraph>
where TVertex : class
where TEdge : IEdge<TVertex>
where TGraph : class, IBidirectionalGraph<TVertex, TEdge>
{

最新更新