Skip to main content

Module utils

Module utils 

Source
Expand description

Pure utility functions ported from xgi/utils/ (non-Python-machinery only).

Ported: dual_dict, powerset, subfaces, get_network_type, convert_labels_to_integers. See the Phase-6 plan header for the exclusion list.

Enums§

UtilError
Errors raised by utility functions.

Functions§

convert_labels_to_integers
Relabel node and edge ids to sequential integer strings, stashing the old ids.
dual_dict
Reverse an id→members map into a member→ids map.
get_network_type
The lowercased network type name.
powerset
All subsets of items, with XGI’s option flags.
subfaces
Subfaces of a list of hyperedges.