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

Inconsistencies in __getitem__ implementation across complex types #270

Open
ffl096 opened this issue Oct 6, 2023 · 0 comments
Open

Inconsistencies in __getitem__ implementation across complex types #270

ffl096 opened this issue Oct 6, 2023 · 0 comments
Assignees

Comments

@ffl096
Copy link
Member

ffl096 commented Oct 6, 2023

Similar to #266, the __getitem__ method is not implemented consistently across different complex types:

  • For simplicial complexes, SC[simplex] returns the user-defined attributes associated with that simplex.
  • For cell complexes, CC[cell] returns the neighbours of that cell.
  • For coloured hypergraphs (and combinatorial complexes), CHG[node] returns the attributes of that node, but it does not work for hyperedges.
  • For path complexes, PC[path] returns the attributes associated with that path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants