qbiocode.apps.quvine.views.views module#
Summary#
Functions:
Build constrained ego-views with optional degree-normalized expansion. |
Reference#
- constrained_view(G, root, num_views, max_nodes, max_edges, max_degree, rng, degree_norm=False, degree_alpha=0.5, eps=1e-06)[source]#
Build constrained ego-views with optional degree-normalized expansion.
- Parameters:
degree_norm (bool) – If True, neighbors are sampled with probability proportional to (deg + eps)^(-degree_alpha)
degree_alpha (float) – Strength of degree downweighting (0.5 recommended)