DotNetGraph 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package DotNetGraph --version 1.0.0
NuGet\Install-Package DotNetGraph -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DotNetGraph" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotNetGraph --version 1.0.0
#r "nuget: DotNetGraph, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DotNetGraph as a Cake Addin
#addin nuget:?package=DotNetGraph&version=1.0.0

// Install DotNetGraph as a Cake Tool
#tool nuget:?package=DotNetGraph&version=1.0.0


Create DOT diagram using C# / .Net (

DotNetGraph Documentation

Create a graph (DotGraph)

var graph = new DotGraph("MyGraph");

var directedGraph = new DotGraph("MyDirectedGraph", true);

Create and add a node (DotNode)

var myNode = new DotNode("MyNode") {
    // Set all available properties
    Shape = DotNodeShape.Ellipse,
    Label = "My node !",
    FillColor = DotColor.Lightgrey,
    FontColor = DotColor.Black,
    Style = DotNodeStyle.Default,
    Height = 0.5f

// Add the node to the graph

Create and add an arrow (DotArrow)

// Create an arrow with node names
var myArrow = new DotArrow("myNode1", "myNode2");

// Create an arrow with node objects
var myArrow = new DotArrow(myNode1, myNode2) {
    // Set all available properties
    ArrowHeadShape = DotArrowShape.Normal;

// Add the arrow to the graph

Compile to DOT format

// Indented version
var dot = graph.Compile();

// Minified version
var dot = graph.Compile(true);

// Save it to a file
File.WriteAllText("", dot);
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (6)

Showing the top 5 NuGet packages that depend on DotNetGraph:

Package Downloads

Package Description


A bridge between Fluent.Calculations.Primitives and DotNetGraph


A general-purpose Process Mining library for .NET, primarily focusing on techniques concerning Object-Centric Event Logs.


Package Description


Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.0.0 3,784 9/8/2023
3.0.0-beta3 958 8/10/2023
3.0.0-beta2 505 8/8/2023
2.7.0 79,538 1/16/2022
2.6.0 45,870 7/7/2020
2.5.0 1,071 6/6/2020
2.4.0 1,374 5/11/2020
2.3.0 1,365 4/27/2020
2.1.0 941 4/26/2020
2.0.2 1,034 3/31/2020
2.0.1 1,027 2/9/2020
2.0.0 1,073 12/23/2019
1.0.3 1,065 12/11/2019
1.0.2 2,062 3/22/2019
1.0.1 3,776 10/10/2017
1.0.0 1,917 10/9/2017

First upload