net-spider-0.4.3.6: A graph database middleware to maintain a time-varying graph.
MaintainerToshio Ito <debug.ito@gmail.com>
Safe HaskellNone
LanguageHaskell2010

NetSpider.Graph

Description

 
Synopsis

Attributes classes

class NodeAttributes ps where Source #

Class of user-defined types for node attributes. Its content is stored in the NetSpider database.

Methods

writeNodeAttributes :: ps -> Binder (Walk SideEffect VFoundNode VFoundNode) Source #

Return Walk to write the attributes to the VFoundNode.

parseNodeAttributes :: PMap Multi GValue -> Parser ps Source #

Parse the vertex proprerties into the attributes.

Instances

Instances details
NodeAttributes () Source #

No attributes.

Instance details

Defined in NetSpider.Graph.Internal

(FromGraphSON v, ToJSON v, Foldable c, Traversable c, NonEmptyLike c) => NodeAttributes (PMap c v) Source #

Straightforward implementation.

Since: 0.4.0.0

Instance details

Defined in NetSpider.Graph.Internal

class LinkAttributes ps where Source #

Class of user-defined types for link attributes. Its content is stored in the NetSpider database.

Methods

writeLinkAttributes :: ps -> Binder (Walk SideEffect EFinds EFinds) Source #

Return Walk to write the attributes to the EFinds.

parseLinkAttributes :: PMap Single GValue -> Parser ps Source #

Parse the edge proprerties into the attributes.

Instances

Instances details
LinkAttributes () Source #

No attributes.

Instance details

Defined in NetSpider.Graph.Internal

(FromGraphSON v, ToJSON v, Foldable c, Traversable c, NonEmptyLike c) => LinkAttributes (PMap c v) Source #

Straightforward implementation.

Since: 0.4.0.0

Instance details

Defined in NetSpider.Graph.Internal

Graph element types

type EID = ElementID Source #

Generic element ID used in the graph DB.

data VNode Source #

The "node" vertex.

Instances

Instances details
Eq VNode Source # 
Instance details

Defined in NetSpider.Graph.Internal

Methods

(==) :: VNode -> VNode -> Bool #

(/=) :: VNode -> VNode -> Bool #

Show VNode Source # 
Instance details

Defined in NetSpider.Graph.Internal

Methods

showsPrec :: Int -> VNode -> ShowS #

show :: VNode -> String #

showList :: [VNode] -> ShowS #

FromGraphSON VNode Source # 
Instance details

Defined in NetSpider.Graph.Internal

ElementData VNode Source # 
Instance details

Defined in NetSpider.Graph.Internal

Element VNode Source # 
Instance details

Defined in NetSpider.Graph.Internal

Associated Types

type ElementProperty VNode :: Type -> Type #

type ElementPropertyContainer VNode :: Type -> Type #

Vertex VNode Source # 
Instance details

Defined in NetSpider.Graph.Internal

type ElementPropertyContainer VNode Source # 
Instance details

Defined in NetSpider.Graph.Internal

type ElementProperty VNode Source # 
Instance details

Defined in NetSpider.Graph.Internal

data EFinds Source #

"finds" edge.

Instances

Instances details
Eq EFinds Source # 
Instance details

Defined in NetSpider.Graph.Internal

Methods

(==) :: EFinds -> EFinds -> Bool #

(/=) :: EFinds -> EFinds -> Bool #

Show EFinds Source # 
Instance details

Defined in NetSpider.Graph.Internal

FromGraphSON EFinds Source # 
Instance details

Defined in NetSpider.Graph.Internal

ElementData EFinds Source # 
Instance details

Defined in NetSpider.Graph.Internal

Element EFinds Source # 
Instance details

Defined in NetSpider.Graph.Internal

Associated Types

type ElementProperty EFinds :: Type -> Type #

type ElementPropertyContainer EFinds :: Type -> Type #

Edge EFinds Source # 
Instance details

Defined in NetSpider.Graph.Internal

type ElementPropertyContainer EFinds Source # 
Instance details

Defined in NetSpider.Graph.Internal

type ElementProperty EFinds Source # 
Instance details

Defined in NetSpider.Graph.Internal