xgi.convert.bipartite_edges#

Methods for converting to and from bipartite edgelists.

Functions

from_bipartite_edgelist(edges)[source]#

Generate a hypergraph from a list of lists.

Parameters:

e (tuple, list, or array of tuples, lists, or arrays, each of size 2) – A bipartite edgelist

Returns:

The constructed hypergraph object

Return type:

Hypergraph object

to_bipartite_edgelist(H)[source]#

Generate a hyperedge list from a hypergraph.

Parameters:

H (Hypergraph, SimplicialComplex, or DiHypergraph object) – The network of interest

Returns:

The hyperedge list

Return type:

list of sets