(self)
return self._graph
Property that returns back a graph object.
Property that returns back a graph object.
Property that returns back a graph object .
def graph(self):
        """Property that returns back a graph object."""
        if self._graph:
            return self._graph

        if not self.resource_data:
            return nx.Graph()

        # It is necessary to do a deep copy, otherwise the upstream
        # nx library modifies the resource data.
        graph_dict = copy.deepcopy(self.resource_data)
        self._graph = nx.cytoscape_graph(graph_dict)
        return self._graph
def graph ( self ) : if self . _graph : return self . _graph if not self . resource_data : return nx . Graph ( ) # It is necessary to do a deep copy, otherwise the upstream # nx library modifies the resource data. graph_dict = copy . deepcopy ( self . resource_data ) self . _graph = nx . cytoscape_graph ( graph_dict ) return self . _graph