graphviz

package module
v0.0.0-...-63664f8 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Graphviz

func Graphviz[T mat.DType](g *ag.Graph[T], options ...Option[T]) (gographviz.Interface, error)

Graphviz creates a gographviz representation of the Graph.

func Marshal

func Marshal[T mat.DType](g *ag.Graph[T]) ([]byte, error)

Marshal the graph in a dot (graphviz).

func Save

func Save(gv gographviz.Interface, filename string) (err error)

Save saves a gographviz graph to a DOT file.

Types

type Option

type Option[T mat.DType] func(*builder[T])

Option allows to tweak the graphviz generation.

func ShowNodesWithoutEdges

func ShowNodesWithoutEdges[T mat.DType](value bool) Option[T]

ShowNodesWithoutEdges enables whether to show graph nodes which have no connections.

func WithColoredTimeSteps

func WithColoredTimeSteps[T mat.DType](value bool) Option[T]

WithColoredTimeSteps enables to use different colors for representing nodes with different time-step values.

Jump to

Keyboard shortcuts

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