def sendMessageToAll(nodes, sender: Node, msg: Optional[Tuple]=None):
    '\n    Sends message from one node to all others\n\n    :param nodes:\n    :param sender: sender\n    :param msg: optional message - by default random one generated\n    :return:\n    '
    for node in nodes:
        if (node != sender):
            sendMessage(sender, node, msg)
Sends message from one node to all others

:param nodes:
:param sender: sender
:param msg: optional message - by default random one generated
:return:
def sendMessageToAll(nodes, sender: Node, msg: Optional[Tuple]=None):
    '\n    Sends message from one node to all others\n\n    :param nodes:\n    :param sender: sender\n    :param msg: optional message - by default random one generated\n    :return:\n    '
    for node in nodes:
        if (node != sender):
            sendMessage(sender, node, msg)