Versions in this module Expand all Collapse all v1 v1.0.0 Dec 6, 2020 Changes in this version type Node + func (n *Node) ForceScale(val float64) v0 v0.4.0 Dec 2, 2020 v0.3.0 Nov 27, 2020 Changes in this version + const WebAdditionFooter + const WebAdditionHeader + type Edge struct + From *Node + Styles EdgeStyles + To *Node + func NewEdge(g *Graph, from, to string, styles EdgeStyles) (*Edge, error) + func (n Edge) String() string + type EdgeStyles struct + ArrowTail string + Color string + FontColor string + Label string + Style string + ToolTip string + Width float64 + func (s EdgeStyles) String() string + type Edges map[string]*Edge + func (n Edges) String() string + type Graph struct + EdgeStyle EdgeStyles + Edges Edges + GraphStyle Styles + IsSubgraph bool + Name string + NodeStyle NodeStyles + Nodes Nodes + SubGraphs SubGraphs + func (g *Graph) AddEdge(from, to string, styles EdgeStyles) error + func (g *Graph) AddEdgeByNode(from, to *Node, styles EdgeStyles) error + func (g *Graph) AddNode(node *Node) (*Node, error) + func (g *Graph) AddSubGraph(subgraph *Graph) *Graph + func (g *Graph) GetNode(name string) (*Node, bool) + func (g *Graph) GetNodeInSubgraphs(name string) (*Node, bool) + func (g *Graph) GetOrCreateSubGraph(nsName string) *Graph + func (g *Graph) GetSubGraph(name string) (*Graph, bool) + func (g *Graph) String() string + type Node struct + Edges Edges + Name string + Styles NodeStyles + func (n *Node) Scale(val float64) + func (n *Node) String() string + type NodeStyles struct + EdgeColor string + FillColor string + FontColor string + FontFamily string + FontSize int64 + Label string + Shape string + Style string + func (s NodeStyles) String() string + type Nodes map[string]*Node + func (n Nodes) AddNode(node *Node) + func (n Nodes) DeleteNode(node *Node) + func (n Nodes) String() string + type Styles struct + BorderColor string + FontColor string + GraphMargin float64 + Label string + NodeMargin float64 + Padding float64 + Style string + func (s Styles) String() string + type SubGraphs map[string]*Graph + func (g SubGraphs) String() string