Documentation ¶
Overview ¶
Package graphout implements functions to write graphs to common graph formats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dot ¶
type Dot struct { // Name is the name given to the graph. Usually this can be // left blank. Name string // Label returns the string to use as a label for the given // node. If nil, nodes are labeled with their node numbers. Label func(node int) string // NodeAttrs, if non-nil, returns a set of attributes for a // node. If this includes a "label" attribute, it overrides // the label returned by Label. NodeAttrs func(node int) []DotAttr // EdgeAttrs, if non-nil, returns a set of attributes for an // edge. EdgeAttrs func(node, edge int) []DotAttr }
Dot contains options for generating a Graphviz Dot graph from a Graph.
type DotAttr ¶
type DotAttr struct { Name string // Val is the value of this attribute. It may be a string // (which will be escaped), bool, int, uint, float64 or // DotLiteral. Val interface{} }
DotAttr is an attribute for a Dot node or edge.
type DotLiteral ¶
type DotLiteral string
DotLiteral is a string literal that should be passed to dot unescaped.
Click to show internal directories.
Click to hide internal directories.