Grapher

trait Grapher[X, S, T, Style <: (GraphStyle)](using graphvizOptions: Style[S, T])

Trait of factories which render objects with Graphviz.

The toDOT method is the only abstract method of the class. Implementations should return lines of text to be included within a digraph (or other Graphviz block).

The graphviz methods actually invoke a Graphviz executable according to (possibly implicit) options to render an object. These methods both have defaults provided in this trait.

class Object
trait Matchable
class Any

Value members

Abstract methods

def toDOT(x: X)(using graphvizOptions: Style[S, T]): String

Return the inner lines of a digraph block (or other Graphviz style) to render an object.

Return the inner lines of a digraph block (or other Graphviz style) to render an object.

Concrete methods

def graphviz(fileRoot: String, x: X)(using options: Style[S, T]): Unit

Use Graphviz to render this object (in the default format) to the given file.

Use Graphviz to render this object (in the default format) to the given file.

def graphviz(sourceFile: String, outputFile: String, x: X)(using options: Style[S, T]): Unit

Use Graphviz to render this object (in the default format) to the given file.

Use Graphviz to render this object (in the default format) to the given file.