graph

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(attrs ...Attribute) *dot.Graph

New create a new Graph with the specified attributes.

Types

type Attribute

type Attribute func(*dot.Graph)

Attribute is a function that apply a property to a Graph.

func BackgroundColor

func BackgroundColor(color string) Attribute

BackgroundColor sets the Graph background color.

func BottomTop added in v0.4.0

func BottomTop(enable bool) Attribute

BottomTop sets direction of Graph layout from bottom to top.

func FontName

func FontName(name string) Attribute

FontName specify the font used for the Graph title.

func FontSize

func FontSize(size float32) Attribute

FontSize specify the font size, in points, used for title.

func Label

func Label(label string) Attribute

Label is the Graph title.

func LeftToRight

func LeftToRight() Attribute

LeftToRight sets direction of Graph layout from left to right.

func NodeSep added in v0.4.0

func NodeSep(size float32) Attribute

NodeSep specifies the minimum space between two adjacent nodes in the same rank, in inches.

func Ortho added in v0.4.0

func Ortho(enable bool) Attribute

Ortho controls how edges are represented, if true lines are orthogonal.

func RankSep

func RankSep(size float32) Attribute

RankSep gives the desired rank separation, in inches. This is the minimum vertical distance between the bottom of the nodes in one rank and the tops of nodes in the next.

Jump to

Keyboard shortcuts

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