Documentation
¶
Index ¶
- type Edge
- type Graph
- func (g *Graph) Edge(uid, vid int64) graph.Edge
- func (g *Graph) From(id int64) graph.Nodes
- func (g *Graph) GetNode(label string) *Node
- func (g *Graph) HasEdgeBetween(xid, yid int64) bool
- func (g *Graph) HasEdgeFromTo(uid, vid int64) bool
- func (g *Graph) Node(id int64) graph.Node
- func (g *Graph) Nodes() graph.Nodes
- func (g *Graph) To(id int64) graph.Nodes
- type Node
- type Nodes
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 connection between two nodes. https://godoc.org/gonum.org/v1/gonum/graph#Edge
func (*Edge) ReversedEdge ¶
ReversedEdge satisfies graph.Edge.
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
Graph represents a generic graph structure.
func (*Graph) GetNode ¶
GetNode returns the node with label = label, or creates a new one with label and returns it.
func (*Graph) HasEdgeBetween ¶
HasEdgeBetween satisfies graph.Graph.
func (*Graph) HasEdgeFromTo ¶
HasEdgeFromTo satisfies graph.Directed.
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node represents a node in the graph. https://godoc.org/gonum.org/v1/gonum/graph#Node
type Nodes ¶
type Nodes struct {
// contains filtered or unexported fields
}
Nodes represents a collection of Node elements. https://godoc.org/gonum.org/v1/gonum/graph#Nodes
Click to show internal directories.
Click to hide internal directories.