Documentation ¶
Overview ¶
Package graphviz can be used for creating Graphviz graphs and DOT language codes.
Deprecated: this package has been frozen and deprecated in favor of github.com/moorara/algo/pkg/graphviz
Index ¶
Constants ¶
View Source
const ( EdgeTypeDirected = "->" EdgeTypeUndirected = "--" EdgeDirNone = "none" EdgeDirForward = "forward" EdgeDirBack = "back" EdgeDirBoth = "both" ColorBlack = "black" ColorWhite = "white" ColorGray = "gray" ColorRed = "red" ColorCoral = "coral" ColorOrange = "orange" ColorOrangeRed = "orangered" ColorGold = "gold" ColorYellow = "yellow" ColorYellowGreen = "yellowgreen" ColorGreen = "green" ColorLimeGreen = "limegreen" ColorSeaGreen = "seagreen" ColorBlue = "blue" ColorPurple = "purple" ColorSkyBlue = "skyblue" ColorRoyalBlue = "royalblue" ColorSteelBlue = "steelblue" ColorTan = "tan" ColorPink = "pink" ColorOrchid = "orchid" StyleSolid = "solid" StyleBold = "bold" StyleFilled = "filled" StyleDashed = "dashed" StyleDotted = "dotted" StyleRounded = "rounded" ShapeNode = "none" ShapePoint = "point" ShapePlain = "plain" ShapeCircle = "circle" ShapeOval = "oval" ShapeBox = "box" ShapeSquare = "sqaure" ShapeDiamond = "diamond" ShapeTriangle = "triangle" ShapeRecord = "record" ShapeMrecord = "Mrecord" RankSame = "same" RankMin = "min" RankMax = "max" RankdirTB = "TB" RankdirLR = "LR" RankdirRL = "RL" RankdirBT = "BT" ArrowheadNone = "none" ArrowheadNormal = "normal" ArrowheadEmpty = "empty" ArrowheadOpen = "open" ArrowheadDot = "dot" ArrowheadOdot = "odot" ArrowheadBox = "box" ArrowheadObox = "obox" ArrowheadDiamond = "diamond" ArrowheadOdiamond = "odiamond" ArrowheadEdiamond = "ediamond" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge struct { From string To string EdgeType string EdgeDir string Label string Color string Style string Arrowhead string }
Edge represents a graph edge for visualization
type Graph ¶
type Graph struct { Strict bool Digraph bool Name string Rankdir string NodeColor string NodeStyle string NodeShape string Nodes []Node Edges []Edge Subgraphs []Subgraph }
Graph represents a graph for visualization
func (*Graph) AddSubgraph ¶
AddSubgraph adds a new subgraph to graph for visualization
type Node ¶
type Node struct { Name string Group string Label string Color string Style string Shape string FontColor string FontName string }
Node represents a graph node for visualization
type Subgraph ¶
type Subgraph struct { Name string Label string Color string Style string Rank string Rankdir string NodeColor string NodeStyle string NodeShape string Nodes []Node Edges []Edge Subgraphs []Subgraph }
Subgraph represents a subgraph for visualization
func NewSubgraph ¶
func NewSubgraph(name, label, color, style, rank, rankdir, nodeColor, nodeStyle, nodeShape string) Subgraph
NewSubgraph creates a new subgraph for visualization
func (*Subgraph) AddSubgraph ¶
AddSubgraph adds a new subgraph to graph for visualization
Source Files ¶
Click to show internal directories.
Click to hide internal directories.