graphviz

package
v0.0.0-...-c07d7e5 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

From converts a DAG to a graphviz graph

func RenderTo

func RenderTo(graph gographviz.Graph, path string)

RenderTo renders a graphviz graph as a PNG file at the given path using the `dot` command

Types

type RenderableGraph

type RenderableGraph interface {
	GetNodes() []RenderableGraphNode
	GetEdges() []RenderableGraphEdge
}

RenderableGraph interface that should be implemented by different types representing graphs.

type RenderableGraphEdge

type RenderableGraphEdge interface {
	GetSourceNodeID() string
	GetTargetNodeID() string
}

RenderableGraphEdge is an interface for edges within a Graph.

type RenderableGraphNode

type RenderableGraphNode interface {
	GetID() string
}

RenderableGraphNode is an interface for nodes within a Graph.

Jump to

Keyboard shortcuts

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