This project is read-only.

Please note, this version of the GraphViz C# Wrapper is no longer being maintained. Please visit us on GitHub at for the latest version.

Project Description
This is a C# wrapper for the GraphViz graph generator.

Pass in a dot string and an output type and voila, your graph is generated.

The output file is returned to you as a byte array to do as you please.

This library acts as a wrapper for the GraphViz command line tools. The graphviz command line tools are included in this project and need to be placed in the graphviz folder relative to the GraphVizWrapper dll upon deployment.


// These three instances can be injected via the IGetStartProcessQuery, IGetProcessStartInfoQuery and IRegisterLayoutPluginCommand interfaces

var getStartProcessQuery = new GetStartProcessQuery();
var getProcessStartInfoQuery = new GetProcessStartInfoQuery();
var registerLayoutPluginCommand = new RegisterLayoutPluginCommand();

// GraphVizWrapper can be injected via the IGraphVizWrapper interface

var wrapper = new GraphVizWrapper(getStartProcessQuery, getProcessStartInfoQuery, registerLayoutPluginCommand);

byte[] output = wrapper.GenerateGraph("digraph{a -> b; b -> c; c -> a;}", Enums.GraphReturnType.Png);

Last edited Aug 7, 2013 at 5:11 PM by JamieDixonWeb, version 12