Skip to content

Commit 111bd6b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5a8f446 commit 111bd6b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

graphs/basic_graphs.py

-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ def _input(message):
88
def initialize_unweighted_directed_graph(
99
node_count: int, edge_count: int
1010
) -> dict[int, list[int]]:
11-
1211
graph: dict[int, list[int]] = {}
1312
for i in range(node_count):
1413
graph[i + 1] = []
@@ -22,7 +21,6 @@ def initialize_unweighted_directed_graph(
2221
def initialize_unweighted_undirected_graph(
2322
node_count: int, edge_count: int
2423
) -> dict[int, list[int]]:
25-
2624
graph: dict[int, list[int]] = {}
2725
for i in range(node_count):
2826
graph[i + 1] = []
@@ -37,7 +35,6 @@ def initialize_unweighted_undirected_graph(
3735
def initialize_weighted_undirected_graph(
3836
node_count: int, edge_count: int
3937
) -> dict[int, list[tuple[int, int]]]:
40-
4138
graph: dict[int, list[tuple[int, int]]] = {}
4239
for i in range(node_count):
4340
graph[i + 1] = []

0 commit comments

Comments
 (0)