Skip to content

Strategy connecting multiple graphs

LinkGraphs

Builder class for linking multiple graphs, through which we can access linking strategies.

Attributes:

  • graph: networkx.Graph object
  • graphs: dictionary of networkx.Graph objects
  • command_array: an array that stores linking strategies

sliding_window()

Notes that we want to connect graphs in a multivariate graph to create sliding window graph.

time_cooccurrence()

Notes that we want to connect graphs in a multivariate graph based on time co-ocurrance.

StrategyLinkingMultipleGraphs

Links multiple graphs together.

Attributes:

  • graph: networkx.Graph object
  • graphs: dictionary of networkx.Graph objects
  • strategy_precedence: tells in which order should the strategies be excetuted

StrategyLinkingMultipleGraphsByTimeCooccurrence

Bases: StrategyLinkingMultipleGraphs

Links nodes from multiple graphs based on their sequential order.

StrategyLinkingMultipleGraphsSlidingWindow

Bases: StrategyLinkingMultipleGraphs

Sequentially links graphs made by sliding window mechanism.