pnevyk / gryf

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

Implement `Index` and `IndexMut` std traits for Graph and Path #15

Open pnevyk opened 2 years ago

pnevyk commented 2 years ago

Implement Index and IndexMut trais for Graph and Path (and other graph wrappers if new are implemented before this is done).

These operations should be implemented both for vertex index and edge index types, so it is possible to get a vertex data by indexing with vertex index and edge data by edge index.

pnevyk commented 1 year ago

This is not going to be straightforward, because since the implementation of generic indices (issue #17, PR #19), the compiler can't guarantee that vertex index and edge index are different types.