I prefer to do matrices. Thanks though.

You can do that too with spectral graph theory!