neko.core.network.Network.complete_connection

Network.complete_connection(maxlen: int = 2, minimal: bool = True, k_mean: Literal['tight', 'extensive'] = 'tight', only_signed: bool = False, consensus: bool = False, connect_node_when_first_introduced: bool = True)

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.

Parameters: - maxlen: The maximum length of the paths to be searched for. Default is 2. - minimal: A boolean flag indicating whether to reset the object connect_network, updating the possible list of

paths. Default is True.

  • k_mean: The search mode, which can be ‘tight’ or ‘extensive’. Default is ‘tight’.

  • 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_node_when_first_introduced: A boolean flag indicating whether to connect nodes when first introduced. Default is True.

Returns: None. The function modifies the network object in-place.