Class GraphVizGenerator
A Class which creates GraphViz Graphs entirely dynamically.
Inheritance
System.Object
GraphVizGenerator
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF.Writing
Assembly: dotNetRdf.dll
Syntax
public class GraphVizGenerator
Constructors
| Improve this Doc View SourceGraphVizGenerator(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. |
GraphVizGenerator(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.
Properties
| Improve this Doc View SourceFormat
Gets/Sets the Format for the Output.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
| Improve this Doc 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. |
System.Boolean | open | Whether you want to open the Output in the default application (according to OS settings) for the filetype after it is Created. |