Documentation ¶
Overview ¶
Package dot implements a simple interface to encode graphs/digraphs as dot files.
Index ¶
Constants ¶
View Source
const ( RankDir = "rankdir" LR = "LR" RL = "RL" TB = "TB" BT = "BT" Label = "label" Peripheries = "peripheries" )
Often used Configuration options.
View Source
const Exe = "/usr/bin/dot"
Exe defines the full path of the dot executable that will be used. Change this at compile time using `go build -ldflags "-X dot.Exe=/path/to/dot/exe"`.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encoder ¶ added in v0.1.4
type Encoder struct { Digraph bool // weather to use a graph or a digraph for the output // contains filtered or unexported fields }
Encoder writes dot code into a writer.
func NewEncoder ¶ added in v0.1.4
NewEncoder creates a new encoder that writes in the given writer.
func (*Encoder) EncodeEdge ¶ added in v0.2.0
EncodeEdge encodes an edge from src id to dest id.
func (*Encoder) EncodeKeyVal ¶ added in v0.1.4
EncodeKeyVal encodes key = val.
func (*Encoder) EncodeNode ¶ added in v0.1.4
EncodeNode encodes node id.
Click to show internal directories.
Click to hide internal directories.