Documentation
¶
Index ¶
- Constants
- type Edge
- type EdgeStyles
- type Edges
- type Graph
- 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
- type NodeStyles
- type Nodes
- type Styles
- type SubGraphs
Constants ¶
View Source
</g>
`
View Source
const WebAdditionHeader = `` /* 8046-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge struct { From *Node To *Node Styles EdgeStyles }
type EdgeStyles ¶
type EdgeStyles struct { ArrowTail string Style string Color string FontColor string Width float64 Label string ToolTip string }
func (EdgeStyles) String ¶
func (s EdgeStyles) String() string
type Graph ¶
type Graph struct { Name string IsSubgraph bool GraphStyle Styles NodeStyle NodeStyles EdgeStyle EdgeStyles SubGraphs SubGraphs Nodes Nodes Edges Edges }
func (*Graph) AddEdgeByNode ¶
func (g *Graph) AddEdgeByNode(from, to *Node, styles EdgeStyles) error
func (*Graph) AddSubGraph ¶
func (*Graph) GetOrCreateSubGraph ¶
type Node ¶
type Node struct { Name string Edges Edges Styles NodeStyles }
func (*Node) ForceScale ¶ added in v1.0.0
type NodeStyles ¶
type NodeStyles struct { Label string Shape string FillColor string EdgeColor string Style string FontSize int64 FontFamily string FontColor string }
func (NodeStyles) String ¶
func (s NodeStyles) String() string
type Nodes ¶
func (Nodes) DeleteNode ¶
Click to show internal directories.
Click to hide internal directories.