Documentation ¶
Index ¶
- Variables
- func ParseBytes(bytes []byte) (*cgraph.Graph, error)
- func ParseFile(path string) (*cgraph.Graph, error)
- type Format
- type GraphOption
- type Graphviz
- func (g *Graphviz) Close() error
- func (g *Graphviz) Graph(option ...GraphOption) (*cgraph.Graph, error)
- func (g *Graphviz) Render(graph *cgraph.Graph, format Format, w io.Writer) (e error)
- func (g *Graphviz) RenderFilename(graph *cgraph.Graph, format Format, path string) (e error)
- func (g *Graphviz) RenderImage(graph *cgraph.Graph) (img image.Image, e error)
- func (g *Graphviz) SetFontFace(callback func(size float64) (font.Face, error))
- func (g *Graphviz) SetLayout(layout Layout) *Graphviz
- func (g *Graphviz) SetRenderer(format Format, renderer gvc.Renderer)
- type Layout
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Directed = func(g *Graphviz) { g.dir = cgraph.Directed } StrictDirected = func(g *Graphviz) { g.dir = cgraph.StrictDirected } UnDirected = func(g *Graphviz) { g.dir = cgraph.UnDirected } StrictUnDirected = func(g *Graphviz) { g.dir = cgraph.StrictUnDirected } )
Functions ¶
Types ¶
type GraphOption ¶
type GraphOption func(g *Graphviz)
func Name ¶
func Name(name string) GraphOption
type Graphviz ¶
type Graphviz struct {
// contains filtered or unexported fields
}
func (*Graphviz) RenderFilename ¶
func (*Graphviz) RenderImage ¶
func (*Graphviz) SetFontFace ¶
Click to show internal directories.
Click to hide internal directories.