hmdsefi/gograph

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

Tochemey opened this issue · 1 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