def network(self): """ Networkx MultiDiGraph representation of the model :return: Networkx MultiDiGraph representation of model :rtype: networkx.MultiDiGraph """ if self._network is None: G = functions.model_to_networkx(self, drop_cycles=False) self._network = G return self._network