Added check for empty swarm before graphing it.