是否可以使用 WPF 中的 Graphsharp 框架生成无向图?
我只能设法生成有向图,我尝试自己搜索它,但没有弄清楚是否有适当的内置类来创建这种无向图。
由于缺乏有关此框架的文档,我请求您的帮助。也许有人有类似的问题。
是否可以使用 WPF 中的 Graphsharp 框架生成无向图?
我只能设法生成有向图,我尝试自己搜索它,但没有弄清楚是否有适当的内置类来创建这种无向图。
由于缺乏有关此框架的文档,我请求您的帮助。也许有人有类似的问题。
您可能想要转换您的图表:
具体参见GraphLayout.cs
/// <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>
{