Return connections from all the agents in the environment.

        :param bool data:
            If ``True`` return also the dictionary associated with each
            connection

        :returns:
            A list of ``(addr, connections)``-tuples, where ``connections`` is
            a list of addresses agent in ``addr`` is connected to. If
            ``data`` parameter is ``True``, then the ``connections``
            list contains tuples of ``(nb_addr, data)``-pairs , where ``data``
            is a dictionary.

        :rtype: dict

        .. note::

            By design, potential manager agent is excluded from the returned
            list.

def get_connections(self, data=True):
        """Return connections from all the agents in the environment.

        :param bool data:
            If ``True`` return also the dictionary associated with each
            connection

        :returns:
            A list of ``(addr, connections)``-tuples, where ``connections`` is
            a list of addresses agent in ``addr`` is connected to. If
            ``data`` parameter is ``True``, then the ``connections``
            list contains tuples of ``(nb_addr, data)``-pairs , where ``data``
            is a dictionary.

        :rtype: dict

        .. note::

            By design, potential manager agent is excluded from the returned
            list.
        """
        connections = []
        for a in self.get_agents(addr=False):
            c = (a.addr, a.get_connections(data=data))
            connections.append(c)
        return connections