pydistsim.restrictions.communication.BidirectionalLinks
- class BidirectionalLinks[source]
Bases:
ReciprocalCommunicationEven if ReciprocalCommunication holds, one node may not know which out-edges correspond to which in-edges. ReciprocalCommunication combined with such knowledge is modeled by this restriction.
Methods
__init__True if the network is undirected or the set of out-neighbors is the same as the set of in-neighbors.
get_help_messageAttributes
in-neighbors.
- classmethod check(network: NetworkType) bool[source]
True if the network is undirected or the set of out-neighbors is the same as the set of in-neighbors.
- help_message = "The network can't be directed. Please check the documentation of the network generation method and its parameters to ensure that the network is undirected."
in-neighbors. You may want to use an undirected network or transform the network to be reciprocal (add the