dot

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct{}

func NewBackend

func NewBackend() Backend

func (Backend) Emit

func (b Backend) Emit(dst string, prog *ir.Program) error

type Cluster

type Cluster struct {
	Index    int
	Prefix   string
	Nodes    map[string]*Node
	Clusters map[string]*Cluster
}

func (*Cluster) Label

func (c *Cluster) Label() string

type ClusterBuilder

type ClusterBuilder struct {
	Main  *Cluster
	Edges []Edge
	// contains filtered or unexported fields
}

func (*ClusterBuilder) Build

func (b *ClusterBuilder) Build(w io.Writer) error

func (*ClusterBuilder) InsertEdge

func (b *ClusterBuilder) InsertEdge(send, recv ir.PortAddr)

type Edge

type Edge struct {
	Send Port
	Recv Port
}

type Node

type Node struct {
	Name  string
	Extra string
	In    map[Port]struct{}
	Out   map[Port]struct{}
}

func (Node) Format added in v0.19.0

func (n Node) Format() string

func (Node) FormatLabel added in v0.19.0

func (n Node) FormatLabel() string

type Port added in v0.19.0

type Port struct {
	ir.PortAddr
}

func (Port) Format added in v0.19.0

func (p Port) Format() string

func (Port) FormatLabel added in v0.19.0

func (p Port) FormatLabel() string

func (Port) FormatName added in v0.19.0

func (p Port) FormatName() string

Jump to

Keyboard shortcuts

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