EDIT : For convenience, the python script is now a custom node : Compound Edges References.
Compound Edges References