Documentation
¶
Index ¶
- type Edge
- type Graph
- func (g *Graph) AddEdge(e *Edge) error
- func (g *Graph) AddNode(n *Node) error
- func (g *Graph) Commit() (QueryResult, error)
- func (g *Graph) Delete() error
- func (g *Graph) ExecutionPlan(q string) (string, error)
- func (g Graph) New(name string, conn redis.Conn) Graph
- func (g *Graph) Query(q string) (QueryResult, error)
- type Node
- type QueryResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge struct { Source *Node Destination *Node Relation string Properties map[string]interface{} }
Edge represents an edge connecting two nodes in the graph.
type Graph ¶
Graph represents a graph, which is a collection of nodes and edges.
func (*Graph) Commit ¶ added in v1.0.0
func (g *Graph) Commit() (QueryResult, error)
Commit creates the entire graph.
func (*Graph) ExecutionPlan ¶
ExecutionPlan gets the execution plan for given query.
type QueryResult ¶
QueryResult represents the results of a query.
func (*QueryResult) PrettyPrint ¶
func (qr *QueryResult) PrettyPrint()
PrettyPrint prints the QueryResult to stdout, pretty-like.
Click to show internal directories.
Click to hide internal directories.