r/computerscience • u/Sea_Syllabub1017 • Jun 11 '25
Help Comparing two adjacency matrices for graph equality
Hello folks , do you know any algorithm(or any implementation in any programming langage) to compare two adjacency matrices for graph equality?
9
Upvotes
View all comments
Show parent comment
7
u/Jussuuu Jun 12 '25
There are quasipolynomial algorithms that may well be faster than brute force for OP's case. On top of that, there are algorithms such as color refinement that work for most cases. I would only resort to brute force for extremely small graphs.