Cell FLOWer processes edge flows using cell complexes.
Project description
Cell FLOWer
Cell FLOWer processes edge flows using cell complexes. It was developed for the paper Representing Edge Flows on Graphs via Sparse Cell Complexes. You can find the evaluation workflow here. Install it using:
pip install cell-flower
How to use it (Also check out the complete examples):
import cell_flower as cf
import networkx as nx
G = ... # nx.Graph
CC, node_list, node_index_map = cf.nx_graph_to_cc(G) # converts nodes in G to int and also returns the mapping
flows = ... # np.ndarray, shape (samples, edges)
CC_prime = cf.cell_inference_approximation(CC, flows, 2, 2, n_clusters=5)
# Check to see the cells that were recovered; map back to node labels
[ cf.index_to_cell(cell, node_list) for cell in CC_prime.get_cells(2) ]
If you use Cell FLOWer, please cite the following paper:
@InProceedings{hoppe2024representing,
title = {Representing Edge Flows on Graphs via Sparse Cell Complexes},
author = {Hoppe, Josef and Schaub, Michael T},
booktitle = {Proceedings of the Second Learning on Graphs Conference},
pages = {1:1--1:22},
year = {2024},
editor = {Villar, Soledad and Chamberlain, Benjamin},
volume = {231},
series = {Proceedings of Machine Learning Research},
month = {27--30 Nov},
publisher = {PMLR},
pdf = {https://proceedings.mlr.press/v231/hoppe24a/hoppe24a.pdf},
url = {https://proceedings.mlr.press/v231/hoppe24a.html},
}
Acknowledgements
Funded by the European Union (ERC, HIGH-HOPeS, 101039827). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cell_flower-1.0.1.tar.gz
.
File metadata
- Download URL: cell_flower-1.0.1.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97f8d3f9afb09c5d3e9b8f4a2021dc890e958e4201dc22f96c47e24673fa41b0 |
|
MD5 | 1c3b09d04c7a418a9e5947565aac7a70 |
|
BLAKE2b-256 | 29f4726bb4d78646f1c4710efeeeaf04bcb380294c86af792441aeb8eea6ee5f |
File details
Details for the file cell_flower-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: cell_flower-1.0.1-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ae19cfd5f9c9d86984aeecc829720088053b1f3f0e0b1007a05eca2ac8503ee |
|
MD5 | e72b05aea85f747d2947a18d895c245a |
|
BLAKE2b-256 | ea84f963422f7cfe8f681857ed2a353fe99f49bb9c6cf969e72345ea109fb945 |