neko.core.network.Network.complete_connection

Network.complete_connection(maxlen: int = 2, algorithm: Literal['bfs', 'dfs'] = 'dfs', minimal: bool = True, only_signed: bool = False, consensus: bool = False, connect_with_bias: bool = False) None

This function attempts to connect all nodes of a network object using one of the methods presented in the Connection object. This is a core characteristic of this package and the user should have the possibility to choose different methods to enrich its Network object.

Args:
  • maxlen: The maximum length of the paths to be searched for. Default is 2.

  • algorithm: The search algorithm to be used. It can be ‘bfs’ (Breadth-First Search) or ‘dfs’

    (Depth-First Search).

  • minimal: A boolean flag indicating whether to reset the object connect_network, updating the possible list

    of paths. Default is True.

  • only_signed: A boolean flag indicating whether to filter unsigned paths. Default is False.

  • consensus: A boolean flag indicating whether to check for consensus among references. Default is False.

  • connect_with_bias: A boolean flag indicating whether to connect nodes when first

    introduced. Default is True.

Returns:
  • None