added some general group code, edge sequences