Package: ansible-inventory-grapher

"ansible-inventory-grapher" package binaries on CentOS:

/usr/bin/ansible-inventory-grapher

You may install this package on CentOS with yum install ansible-inventory-grapher