是否可以使用WPF中的Graphsharp框架生成无向图?
我只能设法生成有向图,我试着自己搜索它,但是没有弄清楚是否有一个适当的类内建来创建这样的无向图。
由于缺乏关于这个框架的文档,我请求您的帮助。也许有人也有类似的问题。
发布于 2019-07-07 12:19:41
您可能希望转换您的图形:
参见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>
{https://stackoverflow.com/questions/53136048
复制相似问题