Skip to content

Commit

Permalink
sort unique edge sizes (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry authored Nov 16, 2022
1 parent 8113d5a commit cad0f8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xgi/classes/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ def unique_edge_sizes(H):
Returns
-------
list()
The unique edge sizes
The unique edge sizes in ascending order by size.
"""
return list({len(H.edges.members(edge)) for edge in H.edges})
return sorted({len(H.edges.members(edge)) for edge in H.edges})


def frozen(*args, **kwargs):
Expand Down

0 comments on commit cad0f8d

Please sign in to comment.