pydistsim.restrictions.topological.StarGraph

class StarGraph[source]

Bases: ShapeRestriction

The communication topology is a star.

A network is a star if there is a node that is connected to all other nodes and the rest of the nodes are only connected to the center node.

If the network has only one or two nodes, it is considered a star.

Strong connectivity is not required as this restriction can be used with Connectivity.

Methods

__init__

check

get_help_message

Attributes

help_message