Skip to content

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

Bases: StrategyNextValueInNode

Chooses next value in selected node randomly.

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 one
  • graph: networkx.Graph object

StrategySelectNextNodeRandomDegree

Bases: StrategySelectNextNode

Randomly chooses next node in graph based on a neighbor degree.

StrategySelectNextNodeRandomWithRestart

Bases: StrategySelectNextNode

Randomly chooses next node with 15% chance of choosing the first node.

StrategySelectNextNodeRandomly

Bases: StrategySelectNextNode

Randomly chooses next node from all nodes of the graph.

StrategySelectNextNodeRandomlyFromNeighboursAcrossGraphs

Bases: StrategySelectNextNode

Walks through all graphs in a multivariate graph and chooses next node randomly.

StrategySelectNextNodeRandomlyFromNeighboursFromFirstGraph

Bases: StrategySelectNextNode

Walks through first graph and chooses next node randomly.