Documentation ¶
Index ¶
- Constants
- func GetElement(elemType, data string, elem interface{}) error
- func GetElementType(elem interface{}) string
- func NewGraph(interface{}) (error, uuid.UUID)
- type Edge
- type EdgeInterface
- type Element
- func (self *Element) GetGraphId() uuid.UUID
- func (self *Element) GetProperties() (error, ElementProperty)
- func (self *Element) GetUUID() uuid.UUID
- func (self *Element) Json() string
- func (self *Element) Remove() error
- func (self *Element) SetProperties(properties ElementProperty) error
- func (self *Element) String() string
- type ElementInterface
- type ElementProperty
- type Graph
- func (self *Graph) AddEdge(src Vertex, dest Vertex, properties ElementProperty) (error, Edge)
- func (self *Graph) AddVertex(properties ElementProperty) (error, Vertex)
- func (self *Graph) GetEdges() (error, []Edge)
- func (self *Graph) GetProperties() (error, ElementProperty)
- func (self *Graph) GetUUID() uuid.UUID
- func (self *Graph) GetVertices() (error, []Vertex)
- type GraphInterface
- type Partition
- type PartitionInterface
- type Vertex
- func (self *Vertex) GetChildVertices(edgeLabels []string) (error, []Vertex)
- func (self *Vertex) GetInEdges(edgeLabels []string) (error, []Edge)
- func (self *Vertex) GetOutEdges(edgeLabels []string) (error, []Edge)
- func (self *Vertex) GetParentVertices(edgeLabels []string) (error, []Vertex)
- func (self *Vertex) Json() string
- func (self *Vertex) String() string
- type VertexInterface
Constants ¶
View Source
const ( GRAPH = "GRAPH" VERTEX = "VERTEX" EDGE = "EDGE" )
Variables ¶
This section is empty.
Functions ¶
func GetElement ¶
func GetElementType ¶
func GetElementType(elem interface{}) string
Types ¶
type EdgeInterface ¶
type EdgeInterface interface { ElementInterface GetSrcVertex() (error, Vertex) GetDestVertex() (error, Vertex) }
type Element ¶
type Element struct { UUID uuid.UUID GraphUUID uuid.UUID Properties ElementProperty }
func (*Element) GetGraphId ¶
func (*Element) GetProperties ¶
func (self *Element) GetProperties() (error, ElementProperty)
func (*Element) SetProperties ¶
func (self *Element) SetProperties(properties ElementProperty) error
type ElementInterface ¶
type ElementInterface interface { GetUUID() uuid.UUID GetGraphId() uuid.UUID GetProperties() (error, ElementProperty) SetProperties(props ElementProperty) error Remove() error Json() string }
type ElementProperty ¶
type Graph ¶
func (*Graph) GetProperties ¶
func (self *Graph) GetProperties() (error, ElementProperty)
func (*Graph) GetVertices ¶
type GraphInterface ¶
type Partition ¶
func (*Partition) Move ¶
func (partition *Partition) Move(partitionInterface PartitionInterface) error
type PartitionInterface ¶
type PartitionInterface interface {
Move(partitionInterface PartitionInterface) error
}
Click to show internal directories.
Click to hide internal directories.