qbiocode.apps.quvine.data.sparsify module#
Summary#
Functions:
Score edges by triangle support (# common neighbors). |
|
Return a fully materialized undirected simple nx.Graph (no views, no DiGraph internals). |
|
Edge-only sparsification: degree-capped selection prioritizing biologically coherent edges. |
Reference#
- materialize_undirected_simple_graph(G)[source]#
Return a fully materialized undirected simple nx.Graph (no views, no DiGraph internals). This avoids the weird KeyErrors you were seeing with adjacency traversal. Preserves graph-level metadata and node attributes.
- Return type:
Graph