Exemplo n.º 1
0
    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
Exemplo n.º 2
0
    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