dag

package
v0.0.0-...-118695c Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph struct {
	*simple.DirectedGraph
	// contains filtered or unexported fields
}

func New

func New() *Graph

func (*Graph) Attributers

func (*Graph) Attributes

func (g *Graph) Attributes() []encoding.Attribute

func (*Graph) ExportToDot

func (g *Graph) ExportToDot() (string, error)

ExportToDot exports the DAG to Graphviz .dot format.

func (*Graph) NewEdge

func (g *Graph) NewEdge(from, to graph.Node) graph.Edge

func (*Graph) NewNode

func (g *Graph) NewNode() *Node

func (*Graph) SetAttribute

func (g *Graph) SetAttribute(attr encoding.Attribute) error

type Node

type Node struct {
	graph.Node
	// contains filtered or unexported fields
}

func (*Node) Attributes

func (n *Node) Attributes() []encoding.Attribute

func (*Node) SetAttribute

func (n *Node) SetAttribute(attr encoding.Attribute) error

Jump to

Keyboard shortcuts

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