Show / Hide Table of Contents

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 Source

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.

| Improve this Doc View Source

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 Source

Format

Gets/Sets the Format for the Output.

Declaration
public string Format { get; set; }
Property Value
Type Description
string

Methods

| Improve this Doc View Source

Generate(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.

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • GraphVizGenerator(string, string)
    • GraphVizGenerator(string)
  • Properties
    • Format
  • Methods
    • Generate(IGraph, string, bool)
  • Extension Methods
Back to top Generated by DocFX