PyDistSim
2.1.2
  • Installation
  • Starting PyDistSim
  • Tutorials
  • Reference
    • Networks and the NetworkMixin
    • Behavioral properties of a network
    • Range Networks
    • Observers
    • Sensors
    • Logging
    • Modules overview
      • pydistsim
        • pydistsim.algorithm
        • pydistsim.benchmark
        • pydistsim.demo_algorithms
        • pydistsim.gui
        • pydistsim.logging
        • pydistsim.message
        • pydistsim.metrics
        • pydistsim.network
        • pydistsim.observers
        • pydistsim.restrictions
        • pydistsim.scripts
        • pydistsim.simulation
        • pydistsim.tests
        • pydistsim.utils
      • pydistsim.algorithm
      • pydistsim.benchmark
      • pydistsim.demo_algorithms
      • pydistsim.network
      • pydistsim.simulation
      • pydistsim.gui
  • Theoretical models for network algorithms
  • Developer Guide
PyDistSim
  • Reference
  • Modules overview
  • pydistsim
  • pydistsim.restrictions
  • pydistsim.restrictions.communication
  • pydistsim.restrictions.communication.BidirectionalLinks
  • View page source

pydistsim.restrictions.communication.BidirectionalLinks

class BidirectionalLinks[source]

Bases: ReciprocalCommunication

Even 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__

check

True if the network is undirected or the set of out-neighbors is the same as the set of in-neighbors.

get_help_message

Attributes

help_message

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

Previous Next

© Copyright 2024, Agustin Recoba.

Built with Sphinx using a theme provided by Read the Docs.