SWI Dependency Graph

You might find this of value:

Structurally equivalent (=@=) and numbervars/1

Also Graph Theory FAQs: 03. Isomorphism Using Adjacency Matrix