I think you may be missing the installation of something that provides the 'graph' command for brew?
/tmp$ brew graph Error: Unknown command: graph
I think you may be missing the installation of something that provides the 'graph' command for brew?