diff --git a/netin/models/directed_model.py b/netin/models/directed_model.py index 0ce10fb..456aa3c 100644 --- a/netin/models/directed_model.py +++ b/netin/models/directed_model.py @@ -143,7 +143,7 @@ def get_metadata( self._out_degrees.get_metadata(d[self.__class__.__name__]) return d - def simulate(self) -> DiGraph: + def _simulate(self) -> DiGraph: tries = 0 while self.graph.number_of_edges()\ < self._get_expected_number_of_edges(): diff --git a/netin/models/undirected_model.py b/netin/models/undirected_model.py index e41db14..8c08c69 100644 --- a/netin/models/undirected_model.py +++ b/netin/models/undirected_model.py @@ -35,7 +35,7 @@ def _populate_initial_graph(self): for j in range(i): self.graph.add_edge(i, j) - def simulate(self) -> Graph: + def _simulate(self) -> Graph: for source in range( self.graph.number_of_nodes(), self.N): self.graph.add_node(source)