You can group the activity nodes and edges in an activity diagram using partitions, so that each partition models a part of the activity.