internal

package
v0.0.0-...-67c439a Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttrEdge

type AttrEdge struct {
	F, T graph.Node
	W    float64
	Dot  []encoding.Attribute
}

AttrEdge is a custom edge with DOT attribute.

func (*AttrEdge) Attributes

func (e *AttrEdge) Attributes() []encoding.Attribute

Attributes returns the DOT attributes of the edge.

func (*AttrEdge) From

func (e *AttrEdge) From() graph.Node

From returns the from-node of the edge.

func (*AttrEdge) ReversedEdge

func (e *AttrEdge) ReversedEdge() graph.Edge

ReversedEdge returns a new Edge with the F and T fields swapped.

func (*AttrEdge) To

func (e *AttrEdge) To() graph.Node

To returns the to-node of the edge.

func (*AttrEdge) Weight

func (e *AttrEdge) Weight() float64

Weight returns the weight of the edge.

type DOTPrintOptions

type DOTPrintOptions struct {
	DOTFile string
	SVGFile string
}

DOTPrintOptions hold information relating to DOT files.

Jump to

Keyboard shortcuts

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