| Maintainer | Toshio Ito <debug.ito@gmail.com> |
|---|---|
| Safe Haskell | None |
| Language | Haskell2010 |
NetSpider.Snapshot.Internal
Description
this module is internal. End-users should not use this.
Implementation of Snapshot graph types. This module is for internal and testing purposes only.
Since: 0.3.0.0
Synopsis
- type SnapshotGraph n na la = ([SnapshotNode n na], [SnapshotLink n la])
- data SnapshotLink n la = SnapshotLink {
- _sourceNode :: n
- _destinationNode :: n
- _isDirected :: Bool
- _linkTimestamp :: Timestamp
- _linkAttributes :: la
- linkNodeTuple :: SnapshotLink n la -> (n, n)
- linkNodePair :: SnapshotLink n la -> Pair n
- data SnapshotNode n na = SnapshotNode {
- _nodeId :: n
- _isOnBoundary :: Bool
- _nodeTimestamp :: Maybe Timestamp
- _nodeAttributes :: Maybe na
Documentation
type SnapshotGraph n na la = ([SnapshotNode n na], [SnapshotLink n la]) Source #
The snapshot graph, which is a collection nodes and links.
Since: 0.3.1.0
data SnapshotLink n la Source #
A link in the snapshot graph.
SnapshotLink is summary of one or more link observations by
different subject nodes. Basically the latest of these observations
is used to make SnapshotLink.
- type
n: node ID. - type
la: link attributes.
Constructors
| SnapshotLink | |
Fields
| |
Instances
linkNodeTuple :: SnapshotLink n la -> (n, n) Source #
Node-tuple (source node, destination node) of the link.
linkNodePair :: SnapshotLink n la -> Pair n Source #
Like linkNodeTuple, but this returns a Pair.
data SnapshotNode n na Source #
A node in the snapshot graph.
Constructors
| SnapshotNode | |
Fields
| |