dot

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2019 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteDot

func WriteDot(w io.Writer, dot Dot) (int64, error)

WriteDot writes dot to w. It returns the number of bytes written and any error that occurred.

Types

type Dot

type Dot struct {

	// Name is the name of the graphviz graph.
	Name string

	// GraphAttrs are attributes that apply to the graph as a whole.
	GraphAttrs map[string]interface{}

	// EdgeAttrs are attributes that apply to specific edges in the graph.
	EdgeAttrs map[goraph.Edge]map[string]interface{}

	// VertexAttrs are attributes that apply to specific vertices in the graph.
	VertexAttrs map[goraph.Vertex]map[string]interface{}

	// EdgeGlobalAttrs are attributes that apply to every edge in the graph.
	EdgeGlobalAttrs map[string]interface{}

	// VertexGlobalAttrs are attributes that apply to every vertex in the graph.
	VertexGlobalAttrs map[string]interface{}
	// contains filtered or unexported fields
}

func NewDot

func NewDot(g goraph.Graph) Dot

NewDot creates a new Dot from g.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL