From 23d21e5112318f989733fe8b744d019604111528 Mon Sep 17 00:00:00 2001 From: TreshMom Date: Mon, 19 Feb 2024 21:15:17 +0300 Subject: [PATCH] 52 --- project/task_1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/task_1.py b/project/task_1.py index bd7040a25..be756bb71 100644 --- a/project/task_1.py +++ b/project/task_1.py @@ -8,8 +8,8 @@ bzip = cfpq_data.graph_from_csv(path) def get_graph_info(graph: Any) -> Tuple[int, int, Set[str]]: - countNode = len(graph.nodes) - countEdges = len(graph.edges) + countNode = graph.number_of_nodes() + countEdges = graph.number_of_edges() countLabels = set() for edge in graph.edges: countLabels.add(edge.attr['label'])