Show / Hide Table of Contents

Class GraphVizGenerator

A Class which creates GraphViz Graphs entirely dynamically.

Inheritance
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

| Edit this page 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.

| Edit this page 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.

Properties

| Edit this page View Source

Format

Gets/Sets the Format for the Output.

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

Methods

| Edit this page 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.

bool 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)
  • Edit this page
  • View Source
In this article
  • Constructors
    • GraphVizGenerator(string)
    • GraphVizGenerator(string, string)
  • Properties
    • Format
  • Methods
    • Generate(IGraph, string, bool)
  • Extension Methods
Back to top Generated by DocFX