Documentation ¶
Overview ¶
All the helper functions that don't direct functionality for the Graph, but help that functionality along. (Didn't want to call this file lib because that can get really confusing)
Index ¶
- func CreateEdgeType(name string, validFrom, validTo []NodeType) (*edgeType, error)
- func CreateNewNodeType(name, desc string) error
- func GetEdgeType(name string) (*edgeType, error)
- func GetId() []byte
- func NodeError(val string) *nodeError
- func StartArrayRegExWalkingPath(edges [][]string, output chan GraphNode, start *GraphNode)
- func StartArrayStringWalkingPath(edges [][]string, output chan GraphNode, start *GraphNode)
- type DataNode
- type EdgeStep
- type GraphEdge
- type GraphNode
- func (gn *GraphNode) AddFromEdge(from *GraphEdge) error
- func (gn *GraphNode) AddToEdge(to *GraphEdge) error
- func (gn *GraphNode) GetConnectFrom() []GraphEdge
- func (gn *GraphNode) GetConnectTo() []GraphEdge
- func (gn *GraphNode) Init(nt *NodeType, input NodeData, from, to *GraphEdge) error
- func (gn *GraphNode) SetValue(input NodeData) error
- func (gn *GraphNode) Value() NodeData
- type NodeData
- type NodeStep
- type NodeType
- type PathWalker
- type RelationSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEdgeType ¶
func CreateNewNodeType ¶
func GetEdgeType ¶
func StartArrayRegExWalkingPath ¶
A helper function to start walking a graph. Output is the interfaces concern. Always start on a GraphNode
func StartArrayStringWalkingPath ¶
A helper function to start walking a graph. Output is the interfaces concern. Always start on a GraphNode
Types ¶
type DataNode ¶
type GraphNode ¶
type GraphNode struct {
// contains filtered or unexported fields
}
func (*GraphNode) AddFromEdge ¶
func (*GraphNode) GetConnectFrom ¶
func (*GraphNode) GetConnectTo ¶
type NodeType ¶
type NodeType struct {
// contains filtered or unexported fields
}
func GetNodeType ¶
func GetOrCreateNodeType ¶
func TempUnstoredNodeType ¶
type PathWalker ¶
type RelationSet ¶
type RelationSet struct {
// contains filtered or unexported fields
}
To handle a set of relation eg. Famly would holed brother, sister etc
func (*RelationSet) ValidFromNode ¶
func (rs *RelationSet) ValidFromNode(et *edgeType) (*NodeType, error)
func (*RelationSet) ValidToNode ¶
func (rs *RelationSet) ValidToNode(et *edgeType) (*NodeType, error)
Click to show internal directories.
Click to hide internal directories.