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
- sortByTime :: [FoundNode n na la] -> [FoundNode n na la]
- allTargetNodes :: FoundNode n na la -> [n]
Local findings
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.
Ord
instance is added in net-spider-0.4.1.0.
FoundNode | |
|
Instances
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
LinkState
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 # | |
ToJSON LinkState Source # | Convert Since: 0.4.1.0 |
Defined in NetSpider.Found | |
FromJSON LinkState Source # | Parse a JSON string to Since: 0.4.1.0 |
FromGraphSON LinkState Source # | |
Defined in NetSpider.Found parseGraphSON :: GValue -> Parser LinkState # |
linkStateToText :: LinkState -> Text Source #
Utilities
sortByTime :: [FoundNode n na la] -> [FoundNode n na la] Source #
allTargetNodes :: FoundNode n na la -> [n] Source #
Get all targetNode
s of the FoundNode
.
Since: 0.4.2.0