If you are the "top dog" you are the leader of a group.
Of course in this photo you can see the top dog is actually a dog.