Skip to content

Commit eb16b2d

Browse files
committed
Removed test for later
1 parent 0aa8e19 commit eb16b2d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

graphs/directed_and_undirected_weighted_graph.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,6 @@ def dfs(self, s=-2, d=-1):
114114
# c is the count of nodes you want and if you leave it or pass -1 to the function
115115
# the count will be random from 10 to 10000
116116
def fill_graph_randomly(self, c=-1):
117-
"""
118-
Fill the graph with random nodes and edges.
119-
120-
Args:
121-
c: Number of nodes to generate. If -1, a random number of nodes between 10 and 10000 is used.
122-
123-
Example:
124-
>>> g = DirectedGraph()
125-
>>> g.fill_graph_randomly(5) # Fill graph with 5 nodes and random edges.
126-
>>> len(g.graph) # Check the number of nodes added.
127-
5
128-
>>> all(isinstance(node, int) and isinstance(edges, list) for node, edges in g.graph.items())
129-
True # All nodes should be integers, and edges should be lists.
130-
"""
131117
if c == -1:
132118
c = floor(random() * 10000) + 10
133119
for i in range(c):

0 commit comments

Comments
 (0)