add_vdw_hist_to_rag

alternate Optional energy histogram features for legacy energy/JS clustering workflows.

compute.add_vdw_hist_to_rag(
    rag,
    regions,
    energy_interpolator=None,
    upper_bound=1000,
    use_pbc=False,
    pbc_groups=None,
    bins_energy=None,
    density=False,
    **kwargs_egrid,
)

Attach vdW energy histograms (and bin centers) to RAG nodes for clustering or plotting.