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

Cannot filterby using a nodestat #135

Closed
leotrs opened this issue Jul 7, 2022 · 0 comments · Fixed by #144
Closed

Cannot filterby using a nodestat #135

leotrs opened this issue Jul 7, 2022 · 0 comments · Fixed by #144

Comments

@leotrs
Copy link
Collaborator

leotrs commented Jul 7, 2022

n = H.nodes

# get nodes with degree equal to 2
n.filterby("degree", 2)

# compute degree-of-a-given-order
n.degree(order=2).asdict()

# this SHOULD get nodes with degree-of-a-given-order equal to 2, but right now gives an error
n.filterby(n.degree(order=2), 2)
# -> TypeError
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 a pull request may close this issue.

1 participant