At the moment, Rubjerg.Graphviz
ships with a bunch of precompiled Graphviz dlls built for 64 bit Windows.
This library is compatible with .NET Standard 2.0.
The unit tests run against .NET Framework 4.8 and .NET 8.0.
In the future support may be extended to other platforms.
This project aims to provide a thin .NET shell around the Graphviz C libraries, together with some convenience functionality that helps abstracting away some of the peculiarities of the Graphviz library and make it easier to integrate in an application. Pull request that fall within the scope of this project are welcome.
You can either add this library as a nuget package to project, or include the source and add a project reference.
Add the Rubjerg.Graphviz nuget package to your project.
- Make this code available to your own code, e.g. by adding this repository as a git submodule to your own repository.
- Add the projects Rubjerg.Graphviz and GraphvizWrapper to your solution.
- To use Rubjerg.Graphviz within a project of yours, simply add a project reference to it.
When building your project, you should now see all the Graphviz binaries show up in your output
folder. If you don't, try setting the CopyLocalLockFileAssemblies
property in your referencing
project file to true
. If that still fails, try reordering the projects in your solution, such
that GraphvizWrapper and Rubjerg.Graphviz are at the top.
There is an outstanding issue for this.
For a reference of attributes to instruct Graphviz have a look at Node, Edge and Graph Attributes. For more information on the inner workings of the graphviz libraries, consult the various documents presented at the Graphviz documentation page.