dot

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 Encoder

type Encoder struct{}

func (Encoder) Encode

func (e Encoder) Encode(w io.Writer, prog *ir.Program) error

type Node

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

func (Node) Format

func (n Node) Format() string

func (Node) FormatLabel

func (n Node) FormatLabel() string

type Port

type Port struct {
	ir.PortAddr
}

func (Port) Format

func (p Port) Format() string

func (Port) FormatLabel

func (p Port) FormatLabel() string

func (Port) FormatName

func (p Port) FormatName() string

Jump to

Keyboard shortcuts

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