It's pretty common for animal communities in captivity in Japan!
For example, a lot of zoos or aquariums will have a large penguin community and they'll keep track of the family trees and relationships, friendships, enemies, all that, on a chart.
Here's one for the Sumida Aquarium: https://www.sumida-aquarium.com/sokanzu/assets/img/img_sokan...
And a similar one for the Kyoto Aquarium: https://www.kyoto-aquarium.com/sokanzu/assets/img/img_sokanz...
Note that even the staff are included in this chart...