Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Cast networkx.node_clique_number output to dict
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-rojas committed Mar 13, 2022
1 parent c6dc11b commit 66a1fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/graphs/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -7035,7 +7035,7 @@ def cliques_vertex_clique_number(self, algorithm="cliquer", vertices=None,
return value
elif algorithm == "networkx":
import networkx
return networkx.node_clique_number(self.networkx_graph(), vertices, cliques)
return dict(networkx.node_clique_number(self.networkx_graph(), vertices, cliques))
else:
raise NotImplementedError("Only 'networkx' and 'cliquer' are supported.")

Expand Down

0 comments on commit 66a1fe8

Please sign in to comment.