Skip to main content

Cell FLOWer

Published at Learning on Graphs Conference 2023 Best Paper at LoG 2023 - LoG Conference on Twitter arXiv:2309.01632 DOI:10.18154/RWTH-2024-03864 MIT license Python version Build status Package version on PyPI

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.

Release files for cell-flower 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cell-flower 1.0.1
File Size Uploaded
cell_flower-1.0.1.tar.gz 17.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cell-flower 1.0.1
File Interpreter ABI Platform
cell_flower-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 35.7 kB

Release files / cell_flower-1.0.1.tar.gz

Download URL cell_flower-1.0.1.tar.gz
Size 17.5 kB
Tags Source
SHA-256 checksum
How to use checksums
97f8d3f9afb09c5d3e9b8f4a2021dc890e958e4201dc22f96c47e24673fa41b0
BLAKE2b-256 checksum
How to use checksums
29f4726bb4d78646f1c4710efeeeaf04bcb380294c86af792441aeb8eea6ee5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / cell_flower-1.0.1-py3-none-any.whl

Download URL cell_flower-1.0.1-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ae19cfd5f9c9d86984aeecc829720088053b1f3f0e0b1007a05eca2ac8503ee
BLAKE2b-256 checksum
How to use checksums
ea84f963422f7cfe8f681857ed2a353fe99f49bb9c6cf969e72345ea109fb945
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page