Skip to content

Commit

Permalink
Update _simulate call
Browse files Browse the repository at this point in the history
  • Loading branch information
mannbach committed Aug 20, 2024
1 parent 6aa5d84 commit 367a946
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netin/models/directed_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion netin/models/undirected_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 367a946

Please sign in to comment.