Converting graphs to sequences
StrategyNextValueInNode
Stores strategy to chose next value in the selected node.
Attributes:
skip
: tells us how many values do we skip before appending next one
StrategyNextValueInNodeRandom
StrategyNextValueInNodeRandomForSlidingWindow
Bases: StrategyNextValueInNode
Chooses next value in selected node randomly in graph made with sliding window mechanism.
StrategyNextValueInNodeRoundRobin
Bases: StrategyNextValueInNode
Chooses next value in selected node sequentially, in the same order as they were saved.
StrategyNextValueInNodeRoundRobinForSlidingWindow
Bases: StrategyNextValueInNode
Chooses next value in selected node sequentially for graph made with sliding window mechanism, in the same order as they were saved.
StrategySelectNextNode
Stores strategy to chose next node from the neighbors of the previous node.
Attributes:
change_graphs
: tells how long we walk through one graph, before switching to next onegraph
: networkx.Graph object
StrategySelectNextNodeRandomDegree
StrategySelectNextNodeRandomWithRestart
Bases: StrategySelectNextNode
Randomly chooses next node with 15% chance of choosing the first node.
StrategySelectNextNodeRandomly
StrategySelectNextNodeRandomlyFromNeighboursAcrossGraphs
Bases: StrategySelectNextNode
Walks through all graphs in a multivariate graph and chooses next node randomly.