Adopt for networkx 3.1

With release of networkx 3.0 tree_data does replaced  `attrs` argument with
keyword only arguments.

Version of networkx was bumped in U-C to 3.1 for 2023.2 release.

Change-Id: I26ae8e1eec25b75ebdc5e58a065ec241fb00c50d
This commit is contained in:
Dmitriy Rabotyagov 2024-01-10 16:29:05 +01:00 committed by Dmitriy Rabotyagov
parent c8280dc1fd
commit f200b8df2a
1 changed files with 3 additions and 1 deletions

View File

@ -120,7 +120,9 @@ class TopologyController(RootRestController):
return json_graph.tree_data(
linked_graph,
root=root,
attrs={'id': 'graph_index', 'children': 'children'})
ident='graph_index',
children='children'
)
else:
return json_graph.tree_data(linked_graph, root=root)