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