neko.core.network.Network.connect_to_upstream_nodes

Network.connect_to_upstream_nodes(nodes_to_connect: List[str] | None = None, depth: int = 1, rank: int = 1, only_signed: bool = True, consensus: bool = False) None

Connects to upstream nodes based on the provided parameters.

Parameters: - nodes_to_connect: A list of nodes to connect. If not provided, all nodes in the network are considered. - depth: The depth of the search for upstream nodes. - rank: The rank of the search for upstream nodes.

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