net-spider-0.4.1.0: A graph database middleware to maintain a time-varying graph.

MaintainerToshio Ito <debug.ito@gmail.com>
Safe HaskellNone
LanguageHaskell2010

NetSpider.Graph

Contents

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.

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
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.