helios.layouts.base

Network Layout Abstract Classes

This module provides a set of abstract classes to deal with different network layouts algorithms using different communication strategies.

Functions

helios.layouts.base.is_running(p, timeout=0)[source]

Check if the process p is running

Parameters
  • p (process) –

  • timeout (float, optional) – positive float

Returns

running

Return type

bool

Classes

class helios.layouts.base.NetworkLayout[source]
class helios.layouts.base.NetworkLayoutAsync[source]
class helios.layouts.base.NetworkLayoutIPCRender(network_draw, edges, weights=None)[source]

An abstract class which reads the network information and creates the shared memory resources.

Parameters
  • network_draw (NetworkDraw) – A NetworkDraw object which will be used to draw the network

  • edges (ndarray) – a bi-dimensional array with the edges list

  • weights (array, optional) – a one-dimensional array with the edge weights

class helios.layouts.base.NetworkLayoutIPCServerCalc(num_nodes, num_edges, edges_buffer_name, positions_buffer_name, info_buffer_name, weights_buffer_name=None, dimension=3, snaphosts_buffer_name=None, num_snapshots=0)[source]

An abstract class which reads the network information from the shared memory resources.

This should be used inside of a subprocess which will update the network layout positions

Parameters
  • num_nodes (int) –

  • num_edges (int) –

  • edges_buffer_name (str) –

  • positions_buffer_name (str) –

  • info_buffer_name (str) –

  • weights_buffer_name (str, optional) –

  • dimension (int) –

  • snaphosts_buffer_name (str, optional) –

  • num_snapshots (int, optional) –