Digraph

izumi.fundamentals.graphs.dotml.Digraph
class Digraph(name: String, comment: String, strict: Boolean, graphAttr: Map[String, String], nodeAttr: Map[String, String], edgeAttr: Map[String, String], body: ArrayBuffer[String]) extends GraphVizDotML

Directed graph source code in the DOT language.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def _edge: String

Attributes

Definition Classes
override def _edgePlain: String

Attributes

Definition Classes
override def _head: String

Attributes

Definition Classes

Inherited methods

def attr(kw: String, attrs: Map[String, String]): Unit

Add a graph/node/edge attribute statement.

Add a graph/node/edge attribute statement.

Attributes

attrs

Attributes to be set.

kw

Attributes target ("graph", "node", or "edge").

Inherited from:
GraphVizDotML
def edge(tailName: String, headName: String, label: String, attrs: Map[String, String]): Unit

Create an edge between two nodes.

Create an edge between two nodes.

Attributes

attrs

Any additional edge attributes (must be strings).

headName

End node identifier.

label

Caption to be displayed near the edge.

tailName

Start node identifier.

Inherited from:
GraphVizDotML
def edges(tailHeads: Array[(String, String)]): Unit

Create a bunch of edges.

Create a bunch of edges.

Attributes

tailHeads

array of (tailName, headName) pairs.

Inherited from:
GraphVizDotML
def edges(tailName: String, headNames: Array[String]): Unit

Create a bunch of edges.

Create a bunch of edges.

Attributes

headNames

End nodes identifier.

tailName

Start node identifier.

Inherited from:
GraphVizDotML
def node(name: String, label: String, attrs: Map[String, String]): Unit

Create a node.

Create a node.

Attributes

attrs

Any additional node attributes (must be strings).

label

Caption to be displayed (defaults to the node name).

name

Unique identifier for the node inside the source.

Inherited from:
GraphVizDotML
def save(fileName: String, directory: String): String

Save the DOT source to file.

Save the DOT source to file.

Attributes

directory

Directory for source saving and rendering.

filename

Filename for saving the source (defaults to name + ".gv")

Returns:

The (possibly relative) path of the saved source file.

Inherited from:
GraphVizDotML
def source(subGraph: Boolean): String

The DOT source code as string.

The DOT source code as string.

Attributes

Inherited from:
GraphVizDotML
def subGraph(graph: GraphVizDotML): Unit

Add the current content of the given graph as subgraph.

Add the current content of the given graph as subgraph.

Attributes

graph

An instance of the same kind (Graph, Digraph) as the current graph.

Inherited from:
GraphVizDotML