hmdsefi / gograph

A golang generic graph library that provides mathematical graph-theory and algorithms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feat] Order and Size methods are missing out of the box

Tochemey opened this issue · comments

Hello,

Thanks for this cool library. However there are some methods missing on the graph:

  • Order: the number of vertices in the graph.
  • Size: the number of edges in the graph.

These methods are really important for certain use cases. For instance

  • Size: one can use GetAllEdges and apply len on it. However this can be a performance bottleneck. The same applies to Order