Table of Contents

Class GraphViewFactory

Namespace
Italbytz.Graph.Visualization
Assembly
Italbytz.Graph.dll
public static class GraphViewFactory
Inheritance
GraphViewFactory
Inherited Members

Methods

BuildMinimumSpanningTreeStates(IUndirectedGraph<string, ITaggedEdge<string, double>>, IReadOnlyList<ITaggedEdge<string, double>>)

public static IReadOnlyList<GraphStateViewModel> BuildMinimumSpanningTreeStates(IUndirectedGraph<string, ITaggedEdge<string, double>> graph, IReadOnlyList<ITaggedEdge<string, double>> orderedSolutionEdges)

Parameters

graph IUndirectedGraph<string, ITaggedEdge<string, double>>
orderedSolutionEdges IReadOnlyList<ITaggedEdge<string, double>>

Returns

IReadOnlyList<GraphStateViewModel>

BuildSvgGraphView(IUndirectedGraph<string, ITaggedEdge<string, double>>, IReadOnlyCollection<string>)

public static GraphViewModel BuildSvgGraphView(IUndirectedGraph<string, ITaggedEdge<string, double>> graph, IReadOnlyCollection<string> selectedEdgeKeys)

Parameters

graph IUndirectedGraph<string, ITaggedEdge<string, double>>
selectedEdgeKeys IReadOnlyCollection<string>

Returns

GraphViewModel

BuildTreeGraphView(IReadOnlyCollection<TreeLayoutNode>, double, double, double, double, double, TreeLayoutOrientation)

public static GraphViewModel BuildTreeGraphView(IReadOnlyCollection<TreeLayoutNode> treeNodes, double horizontalSpacing = 120, double verticalSpacing = 140, double nodeRadius = 24, double padding = 40, double rootSpacing = 1, TreeLayoutOrientation orientation = TreeLayoutOrientation.TopDown)

Parameters

treeNodes IReadOnlyCollection<TreeLayoutNode>
horizontalSpacing double
verticalSpacing double
nodeRadius double
padding double
rootSpacing double
orientation TreeLayoutOrientation

Returns

GraphViewModel