ash_model.utils.projections.line_graph_projection¶
- ash_model.utils.projections.line_graph_projection(h, s=1, start=None, end=None, keep_attrs=False)[source]¶
Returns a NetworkX Graph object that is the line graph projection of the given ASH object. The line graph projection of a hypergraph is a graph constructed by placing an edge between every pair of hyperedges that share at least one node.
- Parameters:
- Returns:
A NetworkX Graph object representing the line graph projection of the ASH.
- Return type: