package
0.4.0
Repository: https://github.com/booleworks/logicng-go.git
Documentation: pkg.go.dev

# Functions

Bold generates a new bold edge with the given color.
Circle generates a new node style for a circle with the given stroke, text, and background color.
ColorFromHex returns a color from a hex value.
ColorFromRgb returns a color from red, green, blue values or an error if it cannot be converted to hex.
Dotted generates a new dotted edge with the given color.
Ellipse generates a new node style for an ellipse with the given stroke, text, and background color.
NewEdge generates a new edge between the two given source and destintion node with the given style and an optional label for the edge.
NewEdgeStyle generates a new edge style with the given type and color.
NewGraphicalRepresentation generates a new empty graphical representation.
NewNode generates a new graphical node with the given ID and label as string, the given node style and an optional flag indicating whether the node is a terminal node (in a tree) or not.
NewNodeStyle generates a new node style with the given shape and stroke, text, and background color.
NoEdgeStyle returns an empty edge style defaulting to the backend's (Dot/Mermaid.js) default value.
NoNodeStyle returns an empty node style defaulting to the backend's (Dot/Mermaid.js) default value.
Rectangle generates a new node style for a rectangle with the given stroke, text, and background color.
Solid generates a new solid edge with the given color.
WriteDotToFile writes the given graphical representation as a Dot file to the given file.
WriteDotToFileName writes the given graphical representation as a Dot file to the given filename.
WriteDotToString writes the given graphical representation as a Dot file to a string.
WriteDotToWriter writes the given graphical representation as a Dot file to the given writer.
WriteMermaidToFile writes the given graphical representation as a Mermaid.js file to a the given file.
WriteMermaidToFileName writes the given graphical representation as a Mermaid.js file to a the given filename.
WriteMermaidToString writes the given graphical representation as a Mermaid.js file to a string.
WriteMermaidToWriter writes the given graphical representation as a Mermaid.js file to a the writer.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Edge represents an edge connecting two nodes in the graphical representation.
EdgeStyle gathers type and color of an edge.
A Generator configures the graphical representation of graphs and trees for exporting them to mermaid.js or Graphviz.
Node represents a node in the graphical representation.
NodeStyle gathers shape and stroke, text, and background color of a shape.
A Representation is the internal data model for a graphical representation of a graph or tree.

# Type aliases

Color used in graphical representations.
EdgeType describes the type of edge.
Shape of a node.