dot

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package dot transforms a pathbuilder into a dot file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBundleSubgraph

func NewBundleSubgraph(g *dot.Graph, bundle *pathbuilder.Bundle, opts Options) *dot.Graph

NewBundleSubgraph adds a new subgraph for the given bundle. It does not fill the subgraph.

func NewDot

func NewDot(pb pathbuilder.Pathbuilder, opts Options) *dot.Graph

NewDot creates a new graph from the given pathbuilder

func NewDotForBundles

func NewDotForBundles(opts Options, bundles ...*pathbuilder.Bundle) *dot.Graph

NewDot creates a new graph from the given pathbuilder

Types

type Options

type Options struct {
	Prefixes map[string]string // prefixes for urls to use

	IDPrefix string // force id prefixes for specific nodes

	FlatChildBundles        bool // do not create groups for each child bundle
	IndependentChildBundles bool // consider each bundle a
	CopyChildBundleNodes    bool // attempt to copy nodes which occur in unique child bundles

	BundleUseDisplayNames bool   // use display names (as opposed to machine names) for bundle labels
	ColorBundle           string // color to highlight starting points for bundles
	ColorDatatype         string // color to use for datatype property nodes
}

func (Options) FormatID

func (opts Options) FormatID(id string) string

func (Options) NodeID

func (opts Options) NodeID(id string, bundle *pathbuilder.Bundle) string

NodeID returns the node id for a node with the given id inside the given bundle.

Jump to

Keyboard shortcuts

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