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

Function to relabel nodes and edges #127

Merged
merged 5 commits into from Jun 21, 2022
Merged

Function to relabel nodes and edges #127

merged 5 commits into from Jun 21, 2022

Conversation

nwlandry
Copy link
Collaborator

@nwlandry nwlandry commented Jun 20, 2022

This implements a function very similar to networkx.convert_node_labels_to_integers, but for both node and edge IDs.

xgi/utils/utilities.py Outdated Show resolved Hide resolved
tests/utils/test_utils.py Outdated Show resolved Hide resolved
xgi/utils/utilities.py Outdated Show resolved Hide resolved
xgi/utils/utilities.py Outdated Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
@nwlandry nwlandry merged commit 4ce941d into main Jun 21, 2022
@nwlandry nwlandry deleted the relabel_ids branch June 21, 2022 20:17
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

Successfully merging this pull request may close these issues.

None yet

2 participants