You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, some XGI methods support empty edges and some do not.
Ones that do:
dual(): the dual of a hypergraph with isolated nodes must have empty edges.
add_edges_from() so long as the empty edges is not first and if it is, it raises an IndexError as it tries to access list(first_edge)[0] (in the case of a list of sets)
Ones that do not:
add_edge(): this raises an XGIError for an empty edge.
remove_nodes_from(), remove_node(), and remove_node_from_edge(): these functions delete edges if removing a node creates an empty edge.
The text was updated successfully, but these errors were encountered:
Currently, some XGI methods support empty edges and some do not.
Ones that do:
dual()
: the dual of a hypergraph with isolated nodes must have empty edges.add_edges_from()
so long as the empty edges is not first and if it is, it raises an IndexError as it tries to accesslist(first_edge)[0]
(in the case of a list of sets)Ones that do not:
add_edge()
: this raises an XGIError for an empty edge.remove_nodes_from()
,remove_node()
, andremove_node_from_edge()
: these functions delete edges if removing a node creates an empty edge.The text was updated successfully, but these errors were encountered: