Maintainer | Toshio Ito <debug.ito@gmail.com> |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data FoundNode n na la = FoundNode {
- subjectNode :: n
- foundAt :: Timestamp
- neighborLinks :: [FoundLink n la]
- nodeAttributes :: na
- data FoundLink n la = FoundLink {
- targetNode :: n
- linkState :: LinkState
- linkAttributes :: la
- data LinkState
- linkStateToText :: LinkState -> Text
- linkStateFromText :: Text -> Maybe LinkState
Documentation
data FoundNode n na la Source #
FoundNode
is a node (the subject node) observed at a specific
time. It has a set of neighbor links found at the moment.
- type
n
: node ID. - type
na
: node attributes. - type
la
: link attributes.
FoundNode | |
|
A link found at a FoundNode
. The link connects from the subject
node (the found node) to the target node. The link may be
directional or non-directional.
- type
n
: node ID. - type
la
: link attributes.
FoundLink | |
|
Instances
Bifunctor FoundLink Source # | Since: 0.3.0.0 |
Functor (FoundLink n) Source # | Since: 0.3.0.0 |
(Eq n, Eq la) => Eq (FoundLink n la) Source # | |
(Ord n, Ord la) => Ord (FoundLink n la) Source # | |
Defined in NetSpider.Found compare :: FoundLink n la -> FoundLink n la -> Ordering # (<) :: FoundLink n la -> FoundLink n la -> Bool # (<=) :: FoundLink n la -> FoundLink n la -> Bool # (>) :: FoundLink n la -> FoundLink n la -> Bool # (>=) :: FoundLink n la -> FoundLink n la -> Bool # | |
(Show n, Show la) => Show (FoundLink n la) Source # | |
State of the found link.
LinkUnused | Link is possible, but not used. |
LinkToTarget | Link is directional. It's from subject to target. |
LinkToSubject | Link is directional. It's from target to subject. |
LinkBidirectional | Link is bidirectional. |
Instances
Bounded LinkState Source # | |
Enum LinkState Source # | |
Defined in NetSpider.Found succ :: LinkState -> LinkState # pred :: LinkState -> LinkState # fromEnum :: LinkState -> Int # enumFrom :: LinkState -> [LinkState] # enumFromThen :: LinkState -> LinkState -> [LinkState] # enumFromTo :: LinkState -> LinkState -> [LinkState] # enumFromThenTo :: LinkState -> LinkState -> LinkState -> [LinkState] # | |
Eq LinkState Source # | |
Ord LinkState Source # | |
Defined in NetSpider.Found | |
Show LinkState Source # | |
FromGraphSON LinkState Source # | |
Defined in NetSpider.Found parseGraphSON :: GValue -> Parser LinkState # |
linkStateToText :: LinkState -> Text Source #