public Collection < VM > getAssociatedVGroup ( VM u ) { for ( Collection < VM > vGrp : sets ) { if ( vGrp . contains ( u ) ) { return vGrp ; } } return Collections . emptySet ( ) ; }
Get the group of VMs that contains the given VM .