| Maintainer | Toshio Ito <debug.ito@gmail.com> |
|---|---|
| Safe Haskell | None |
| Language | Haskell2010 |
NetSpider.Graph
Description
Synopsis
- class NodeAttributes ps where
- writeNodeAttributes :: ps -> Binder (Walk SideEffect (VFoundNode ps) (VFoundNode ps))
- parseNodeAttributes :: PropertyMapList AVertexProperty GValue -> Parser ps
- class LinkAttributes ps where
- writeLinkAttributes :: ps -> Binder (Walk SideEffect (EFinds ps) (EFinds ps))
- parseLinkAttributes :: PropertyMapSingle AProperty GValue -> Parser ps
- data EID
- data VNode
- data VFoundNode na
- data EFinds la
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 ps) (VFoundNode ps)) Source #
Return Walk to write the attributes to the VFoundNode.
parseNodeAttributes :: PropertyMapList AVertexProperty GValue -> Parser ps Source #
Parse the vertex proprerties into the attributes.
Instances
| NodeAttributes () Source # | No attributes. |
Defined in NetSpider.Graph.Internal Methods writeNodeAttributes :: () -> Binder (Walk SideEffect (VFoundNode ()) (VFoundNode ())) Source # parseNodeAttributes :: PropertyMapList AVertexProperty GValue -> Parser () Source # | |
| (FromGraphSON v, ToJSON v) => NodeAttributes (PropertyMapList AVertexProperty v) Source # | Straightforward implementation. Note that Since: 0.3.0.0 |
Defined in NetSpider.Graph.Internal Methods writeNodeAttributes :: PropertyMapList AVertexProperty v -> Binder (Walk SideEffect (VFoundNode (PropertyMapList AVertexProperty v)) (VFoundNode (PropertyMapList AVertexProperty v))) Source # parseNodeAttributes :: PropertyMapList AVertexProperty GValue -> Parser (PropertyMapList AVertexProperty v) Source # | |
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 ps) (EFinds ps)) Source #
parseLinkAttributes :: PropertyMapSingle AProperty GValue -> Parser ps Source #
Parse the edge proprerties into the attributes.
Instances
| LinkAttributes () Source # | No attributes. |
Defined in NetSpider.Graph.Internal Methods writeLinkAttributes :: () -> Binder (Walk SideEffect (EFinds ()) (EFinds ())) Source # parseLinkAttributes :: PropertyMapSingle AProperty GValue -> Parser () Source # | |
| (FromGraphSON v, ToJSON v) => LinkAttributes (PropertyMapSingle AProperty v) Source # | Straightforward implementation Since: 0.3.0.0 |
Defined in NetSpider.Graph.Internal Methods writeLinkAttributes :: PropertyMapSingle AProperty v -> Binder (Walk SideEffect (EFinds (PropertyMapSingle AProperty v)) (EFinds (PropertyMapSingle AProperty v))) Source # parseLinkAttributes :: PropertyMapSingle AProperty GValue -> Parser (PropertyMapSingle AProperty v) Source # | |
Graph element types
Generic element ID used in the graph DB.
The "node" vertex.
Instances
| Element VNode Source # | |
Defined in NetSpider.Graph.Internal | |
| Vertex VNode Source # | |
Defined in NetSpider.Graph.Internal | |
| type ElementProperty VNode Source # | |
Defined in NetSpider.Graph.Internal | |
| type ElementID VNode Source # | |
Defined in NetSpider.Graph.Internal | |
data VFoundNode na Source #
The "found_node" vertex.
Instances
| Show na => Show (VFoundNode na) Source # | |
Defined in NetSpider.Graph.Internal Methods showsPrec :: Int -> VFoundNode na -> ShowS # show :: VFoundNode na -> String # showList :: [VFoundNode na] -> ShowS # | |
| NodeAttributes na => FromGraphSON (VFoundNode na) Source # | |
Defined in NetSpider.Graph.Internal Methods parseGraphSON :: GValue -> Parser (VFoundNode na) # | |
| Element (VFoundNode na) Source # | |
Defined in NetSpider.Graph.Internal Associated Types type ElementID (VFoundNode na) :: Type # type ElementProperty (VFoundNode na) :: Type -> Type # | |
| Vertex (VFoundNode na) Source # | |
Defined in NetSpider.Graph.Internal | |
| type ElementProperty (VFoundNode na) Source # | |
Defined in NetSpider.Graph.Internal | |
| type ElementID (VFoundNode na) Source # | |
Defined in NetSpider.Graph.Internal | |
"finds" edge.
Instances
| Show la => Show (EFinds la) Source # | |
| LinkAttributes la => FromGraphSON (EFinds la) Source # | |
Defined in NetSpider.Graph.Internal Methods parseGraphSON :: GValue -> Parser (EFinds la) # | |
| Element (EFinds la) Source # | |
Defined in NetSpider.Graph.Internal | |
| Edge (EFinds la) Source # | |
Defined in NetSpider.Graph.Internal Associated Types type EdgeVertexID (EFinds la) :: Type # | |
| type ElementProperty (EFinds la) Source # | |
Defined in NetSpider.Graph.Internal | |
| type ElementID (EFinds la) Source # | |
Defined in NetSpider.Graph.Internal | |
| type EdgeVertexID (EFinds la) Source # | |
Defined in NetSpider.Graph.Internal | |