Class GraphvizExtensions
Helper extensions to render graphs to graphviz.
Inheritance
Inherited Members
Namespace: QuikGraph.Graphviz
Assembly: QuikGraph.Graphviz.dll
Syntax
public static class GraphvizExtensions
Fields
| Improve this Doc View SourceDotToSvgApiEndpoint
Dot to Svg REST API endpoint.
Declaration
public const string DotToSvgApiEndpoint = "https://rise4fun.com/rest/ask/Agl/"
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceToGraphviz<TVertex, TEdge>(IEdgeListGraph<TVertex, TEdge>)
Renders a graph to the Graphviz DOT format.
Declaration
public static string ToGraphviz<TVertex, TEdge>(this IEdgeListGraph<TVertex, TEdge> graph)
where TEdge : IEdge<TVertex>
Parameters
Type | Name | Description |
---|---|---|
IEdgeListGraph<TVertex, TEdge> | graph | Graph to convert. |
Returns
Type | Description |
---|---|
System.String | Graph serialized in DOT format. |
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TEdge | Edge type. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ToGraphviz<TVertex, TEdge>(IEdgeListGraph<TVertex, TEdge>, Action<GraphvizAlgorithm<TVertex, TEdge>>)
Renders a graph to the Graphviz DOT format.
Declaration
public static string ToGraphviz<TVertex, TEdge>(this IEdgeListGraph<TVertex, TEdge> graph, Action<GraphvizAlgorithm<TVertex, TEdge>> initAlgorithm)
where TEdge : IEdge<TVertex>
Parameters
Type | Name | Description |
---|---|---|
IEdgeListGraph<TVertex, TEdge> | graph | Graph to convert. |
System.Action<GraphvizAlgorithm<TVertex, TEdge>> | initAlgorithm | Delegate that initializes the DOT generation algorithm. |
Returns
Type | Description |
---|---|
System.String | Graph serialized in DOT format. |
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TEdge | Edge type. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|
ToSvg(String)
Performs a layout from DOT to a SVG (Scalable Vector Graphics) file by calling Agl through the https://rise4fun.com/ REST services.
Declaration
[Obsolete("Conversion is using an external web service that is no longer available.")]
public static string ToSvg(string dot)
Parameters
Type | Name | Description |
---|---|---|
System.String | dot | The dot graph |
Returns
Type | Description |
---|---|
System.String | The svg graph. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ToSvg<TVertex, TEdge>(IEdgeListGraph<TVertex, TEdge>)
Performs a layout of graph
from DOT format to an
SVG (Scalable Vector Graphics) file by calling Agl through
the https://rise4fun.com/ REST services.
Declaration
[Obsolete("Conversion is using an external web service that is no longer available.")]
public static string ToSvg<TVertex, TEdge>(this IEdgeListGraph<TVertex, TEdge> graph)
where TEdge : IEdge<TVertex>
Parameters
Type | Name | Description |
---|---|---|
IEdgeListGraph<TVertex, TEdge> | graph | Graph to convert. |
Returns
Type | Description |
---|---|
System.String | The svg graph. |
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TEdge | Edge type. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ToSvg<TVertex, TEdge>(IEdgeListGraph<TVertex, TEdge>, Action<GraphvizAlgorithm<TVertex, TEdge>>)
Performs a layout of graph
from DOT format to an
SVG (Scalable Vector Graphics) file by calling Agl through
the https://rise4fun.com/ REST services.
Declaration
[Obsolete("Conversion is using an external web service that is no longer available.")]
public static string ToSvg<TVertex, TEdge>(this IEdgeListGraph<TVertex, TEdge> graph, Action<GraphvizAlgorithm<TVertex, TEdge>> initAlgorithm)
where TEdge : IEdge<TVertex>
Parameters
Type | Name | Description |
---|---|---|
IEdgeListGraph<TVertex, TEdge> | graph | Graph to convert. |
System.Action<GraphvizAlgorithm<TVertex, TEdge>> | initAlgorithm | Delegate that initializes the DOT generation algorithm. |
Returns
Type | Description |
---|---|
System.String | The svg graph. |
Type Parameters
Name | Description |
---|---|
TVertex | Vertex type. |
TEdge | Edge type. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentNullException |
|