dot

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteGraph

func WriteGraph(w io.Writer, g Graph) error

Types

type Attrs

type Attrs map[string]string

func (Attrs) Lines

func (p Attrs) Lines() string

func (Attrs) List

func (p Attrs) List() []string

func (Attrs) String

func (p Attrs) String() string

type Cluster

type Cluster struct {
	ID       string
	Clusters map[string]*Cluster
	Nodes    []*Node
	Attrs    Attrs
}

func (*Cluster) String

func (c *Cluster) String() string

type Edge

type Edge struct {
	From  string
	To    string
	Attrs Attrs
}

func (*Edge) String

func (e *Edge) String() string

type Graph

type Graph struct {
	Title    string
	Attrs    Attrs
	Clusters map[string]*Cluster
	Nodes    []*Node
	Edges    []*Edge
	Options  map[string]string
	Ranks    []*Rank
}

type Node

type Node struct {
	ID    string
	Attrs Attrs
}

func (*Node) String

func (n *Node) String() string

type Rank

type Rank struct {
	Name  string
	Nodes []string
}

func (*Rank) List

func (r *Rank) List() []string

func (*Rank) String

func (r *Rank) String() string

Jump to

Keyboard shortcuts

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