TheAlgorithms / Ruby

All algorithms implemented in Ruby
MIT License
1.15k stars 289 forks source link

Adding graphs (unweighted + weighted) data structures #206

Closed aparibocci closed 1 year ago

aparibocci commented 1 year ago

This MR aims to add data structure implementations for unweighted and weighted graphs.

Implementations use adjacency lists.

Unit tests are included.