Package datk :: Package core :: Module networks :: Class Bidirectional_Ring
[hide private]
[frames] | no frames]

Class Bidirectional_Ring

source code

distalgs.Network --+
                   |
                  Bidirectional_Ring

A Network of n Processes arranged in a ring. Each edge between a Process and its neighbor is undirected, that is, messages can be sent in both the clockwise and the counterclockwise directions.

Instance Methods [hide private]
 
__init__(self, n, index_to_UID=None)
Creates a network of n disconnected Processes, with random distinct UIDs, or as specified by the index_to_UID function
source code

Inherited from distalgs.Network: __getitem__, __iter__, __len__, __repr__, add, clone, draw, index, run, state

Method Details [hide private]

__init__(self, n, index_to_UID=None)
(Constructor)

source code 

Creates a network of n disconnected Processes, with random distinct UIDs, or as specified by the index_to_UID function

Overrides: distalgs.Network.__init__
(inherited documentation)