Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge struct {
// contains filtered or unexported fields
}
Edge represents a directed connection between two nodes in the graph, with an optional label.
func (*Edge) Class ¶
Class returns the class of the edge. The class can be used to categorize edges into different types or groups.
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
Graph represents an abstraction for a directed graph structure.
func (*Graph) AddNode ¶
AddNode adds a new node with the given ID to the graph and returns it. id is a unique identifier for the node. If a node with the same ID already exists, it will be overwritten.
type Node ¶
type Node struct {
NodeID
// Label returns the label of the node.
Label string
// Description returns the description of the node.
Description string
// contains filtered or unexported fields
}
Node represents a vertex in the graph, containing a unique identifier.
Click to show internal directories.
Click to hide internal directories.