CompositeActor castContainer = container;
// First, include all actors as nodes in the graph.
// get all the contained actors.
List entities = castContainer.deepEntityList();
Iterator actors = entities.iterator();
int actorCount = entities.size();
while (actors.hasNext()) {
Actor actor = (Actor) actors.next();