Meziantou.Framework.Graphviz
1.0.0
Prefix Reserved
See the version list below for details.
dotnet add package Meziantou.Framework.Graphviz --version 1.0.0
NuGet\Install-Package Meziantou.Framework.Graphviz -Version 1.0.0
<PackageReference Include="Meziantou.Framework.Graphviz" Version="1.0.0" />
<PackageVersion Include="Meziantou.Framework.Graphviz" Version="1.0.0" />
<PackageReference Include="Meziantou.Framework.Graphviz" />
paket add Meziantou.Framework.Graphviz --version 1.0.0
#r "nuget: Meziantou.Framework.Graphviz, 1.0.0"
#:package Meziantou.Framework.Graphviz@1.0.0
#addin nuget:?package=Meziantou.Framework.Graphviz&version=1.0.0
#tool nuget:?package=Meziantou.Framework.Graphviz&version=1.0.0
Meziantou.Framework.Graphviz
Reads the DOT language of Graphviz into the flowcharts of
Meziantou.Framework.Diagrams, drawn as deterministic SVG
without installing Graphviz, and writes flowcharts as DOT: directed, undirected and strict graphs, default attributes,
clusters, edges between groups of nodes, shapes, styles, colors, and record and HTML-like labels drawn as text. The
parts of DOT the flowcharts cannot draw, such as the ports, the other layout engines or rank=same, are reported as
warnings.
Usage
var text = """
digraph Orders {
rankdir=LR;
node [shape=box, style=rounded];
start [label="Order received", shape=ellipse];
check [label="Payment valid?", shape=diamond];
subgraph cluster_fulfillment {
label="Fulfillment";
ship [label="Ship the order"];
notify [label="Notify the customer"];
}
cancel [label="Cancel the order", color=red];
start -> check;
check -> ship [label="yes"];
ship -> notify;
check -> cancel [label="no", style=dashed];
}
""";
var document = GraphvizDocument.Parse(text);
var flowchart = document.Diagram;
var svg = flowchart.ToSvg();
Write a flowchart as DOT:
var flowchart = new FlowchartDiagram { Direction = DiagramDirection.LeftToRight };
var start = flowchart.AddNode("start", "Start", FlowchartNodeShape.Stadium);
var end = flowchart.AddNode("end_node", "End", FlowchartNodeShape.DoubleCircle);
flowchart.AddEdge(start, end, "done").LineStyle = FlowchartLineStyle.Dotted;
var dot = GraphvizWriter.Write(flowchart);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- Meziantou.Framework.Diagrams (>= 1.0.4)
-
net11.0
- Meziantou.Framework.Diagrams (>= 1.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.