pnevyk / gryf

Graph data structure library aspiring to be convenient, versatile, correct and performant.
MIT License
69 stars 1 forks source link

Fix `complete_graph_edge_count` for zero vertices #10

Open pnevyk opened 2 years ago

pnevyk commented 2 years ago

Function complete_graph_edge_count returns the number of edges in a complete graph. Currently, it causes integer overflow when the number of vertices is zero.