Class GraphVizGenerator
A Class which creates GraphViz Graphs entirely dynamically.
Inherited Members
Namespace: VDS.RDF.Writing
Assembly: dotNetRdf.dll
Syntax
public class GraphVizGenerator
Constructors
| Edit this page View SourceGraphVizGenerator(string)
Creates a new GraphVizGenerator.
Declaration
public GraphVizGenerator(string format)
Parameters
Type | Name | Description |
---|---|---|
string | format | Format for the Output (svg is default). |
Remarks
Only use this form if you're certain that dot.exe is in your PATH otherwise the code will throw an error.
GraphVizGenerator(string, string)
Creates a new GraphVizGenerator.
Declaration
public GraphVizGenerator(string format, string gvdir)
Parameters
Type | Name | Description |
---|---|---|
string | format | Format for the Output. |
string | gvdir | Directory in which GraphViz is installed. |
Properties
| Edit this page View SourceFormat
Gets/Sets the Format for the Output.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceGenerate(IGraph, string, bool)
Generates GraphViz Output for the given Graph.
Declaration
public void Generate(IGraph g, string filename, bool open)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to generated GraphViz Output for. |
string | filename | File you wish to save the Output to. |
bool | open | Whether you want to open the Output in the default application (according to OS settings) for the filetype after it is Created. |