mark constructor explicit

This commit is contained in:
Maximilian Keßler 2023-11-04 17:29:15 +01:00
parent 4a332be0e7
commit 4c65b47f39
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -131,7 +131,7 @@ public:
The number of nodes in the graph currently cannot be changed. You can only add edges between the existing nodes.
**/
Graph(NodeId const num_nodes);
explicit Graph(NodeId const num_nodes);
/** @return The number of nodes in the graph. **/
NodeId num_nodes() const;