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
graphIUndirectedGraph<string, ITaggedEdge<string, double>>orderedSolutionEdgesIReadOnlyList<ITaggedEdge<string, double>>
Returns
BuildSvgGraphView(IUndirectedGraph<string, ITaggedEdge<string, double>>, IReadOnlyCollection<string>)
public static GraphViewModel BuildSvgGraphView(IUndirectedGraph<string, ITaggedEdge<string, double>> graph, IReadOnlyCollection<string> selectedEdgeKeys)
Parameters
graphIUndirectedGraph<string, ITaggedEdge<string, double>>selectedEdgeKeysIReadOnlyCollection<string>
Returns
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
treeNodesIReadOnlyCollection<TreeLayoutNode>horizontalSpacingdoubleverticalSpacingdoublenodeRadiusdoublepaddingdoublerootSpacingdoubleorientationTreeLayoutOrientation