scikit-tda / kepler-mapper

Kepler Mapper: A flexible Python implementation of the Mapper algorithm.
https://kepler-mapper.scikit-tda.org
MIT License
629 stars 182 forks source link

NetworkX adapter for a mapper K-complex #204

Open he-chen-95 opened 3 years ago

he-chen-95 commented 3 years ago

Dear developers,

I'm now working with the mapper algorithm. I read the documentation and find that "kmapper.adapter" only works for a mapper 1-complex. I wonder if it possible for you to update the "kmapper.adapter" for a mapper k-complex? (i.e., k=1, 2, 3, .., K).

Thanks a lot, Sincerely

sauln commented 3 years ago

Unfortunately, networkx only supports graphs. I'm not familiar with any way of converting a >1-complex to a graph except to just take the 1 skeleton.

Possibly we could put together an adapter for HyperNetX (a library intended to model hypergraphs with a similar API to networkx). If you'd like to explore this option and submit a PR, we would gladly work with you to get it complete.