When you start your mouse drag inside the group node's default label or within 10 space units of the group node's border, then edge creation is started. (In this context, space units are zoom-dependent. I.e. at zoom 1.0, it means 10 pixel; at zoom 2.0, it means 20 pixel; at zoom 0.5, it means 5 pixel; etc.) Otherwise, marquee selection is started.