Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement weights inside all complexes #245

Open
ffl096 opened this issue Sep 19, 2023 · 0 comments
Open

Implement weights inside all complexes #245

ffl096 opened this issue Sep 19, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ffl096
Copy link
Member

ffl096 commented Sep 19, 2023

Many function signatures inside the individual complex classes are already prepared to consider weights (ref. #242), however the functionality behind these parameters is largely non-existent yet. This issue is meant to help keep track of the progress for this task.

Concept

The implementation would largely follow the concept used in NetworkX: Weights are just user-defined properties of the atoms in a complex. The functions take in a property name and considers the (numeric) values under this name as weights.

See for example nx.dijkstra_path().

Example

SC = SimplicialComplex()
SC.add_simplex((1, 2), distance=4)
SC.add_simplex((2, 3), distance=10)
_ = SC.coadjacency_matrix(rank=0, weight="distance")  # Use `distance` property on the simplices as weights
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants