Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
An Edge between two vertices.
func (Edge) MarshalGraphson ¶
MarshalGraphson implements graphson.Marshaler interface.
func (*Edge) UnmarshalGraphson ¶
UnmarshalGraphson implements graphson.Unmarshaler interface.
type Element ¶
Element defines a base struct for graph elements.
func NewElement ¶
NewElement create a new graph element.
type Property ¶
Property denotes a key/value pair associated with an edge.
func NewProperty ¶
NewProperty create a new graph edge property.
func (Property) GraphsonType ¶
GraphsonType implements graphson.Typer interface.
type Vertex ¶
type Vertex struct {
Element
}
Vertex represents a graph vertex.
func (Vertex) GraphsonType ¶
GraphsonType implements graphson.Typer interface.
type VertexProperty ¶
type VertexProperty struct { ID any `json:"id"` Key string `json:"label"` Value any `json:"value"` }
VertexProperty denotes a key/value pair associated with a vertex.
func NewVertexProperty ¶
func NewVertexProperty(id any, key string, value any) VertexProperty
NewVertexProperty create a new graph vertex property.
func (VertexProperty) GraphsonType ¶
func (VertexProperty) GraphsonType() graphson.Type
GraphsonType implements graphson.Typer interface.
func (VertexProperty) String ¶
func (vp VertexProperty) String() string
String implements fmt.Stringer interface.