Documentation ¶
Index ¶
- type Direction
- type Dotter
- func (dotter *Dotter) Close() error
- func (dotter *Dotter) CreateCluster(name string, nodes []string) error
- func (dotter *Dotter) SetEdgeWeight(val float64) error
- func (dotter *Dotter) SetLabel(node, label string) error
- func (dotter *Dotter) SetLink(from, to string) error
- func (dotter *Dotter) SetNodeSep(val float64) error
- func (dotter *Dotter) SetNodeShape(node string, shape NodeShape) error
- func (dotter *Dotter) SetRankDir(direction Direction) error
- func (dotter *Dotter) SetRankSep(val float64) error
- type GraphType
- type NodeShape
- type OutputType
- type Program
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dotter ¶
type Dotter struct { // If Debug is set to true, it will print out the dot outputs Debug bool // contains filtered or unexported fields }
func NewDotter ¶
func NewDotter(oType OutputType, gType GraphType, fname string) (*Dotter, error)
Convenience Wrapper for NewDotterEx(). Makes proper assumptions. For more see NewDotterEx().
func NewDotterEx ¶
func NewDotterEx(oType OutputType, prog Program, gType GraphType, isStrict, writeToFile bool, fname string) (*Dotter, error)
Creates a New Dotter.
Parameters:
- isStrict: if true, multiple edges won't be displayed.
- writeToFile: if true, output will be written to fname. Otherwise to stdout.
- fname: filename. if fname equals "", dot will make up a filename - usally noname.dot.*
func (*Dotter) CreateCluster ¶
func (*Dotter) SetEdgeWeight ¶
func (*Dotter) SetNodeSep ¶
func (*Dotter) SetNodeShape ¶
func (*Dotter) SetRankDir ¶
func (*Dotter) SetRankSep ¶
type OutputType ¶
type OutputType string
const ( OUT_BMP OutputType = "bmp" OUT_DOT OutputType = "dot" OUT_JPG OutputType = "jpg" OUT_PDF OutputType = "pdf" OUT_PNG OutputType = "png" OUT_PS OutputType = "ps" OUT_SVG OutputType = "svg" )
Click to show internal directories.
Click to hide internal directories.