public void addGroup(final Group group){
  group.recursivelySetIds();
  if (group.isTopLevelGroup()) {
    groupList.add(group);
  }
  fireGroupAdded(group);
}

public void addGroup ( final Group group ) { group . recursivelySetIds ( ) ; if ( group . isTopLevelGroup ( ) ) { groupList . add ( group ) ; } fireGroupAdded ( group ) ; }
add a group to the network . this works for both singular groups like neuron groups and synapse groups as well as for composite groups like any subclass of subnetwork .
