xgi.convert.graph#

Method for projecting a hypergraph to a graph.

Functions

to_graph(H)[source]#

Graph projection (1-skeleton) of the hypergraph H. Weights are not considered.

Parameters:

H (Hypergraph object) – The hypergraph of interest

Returns:

G – The graph projection

Return type:

networkx.Graph