An efficient algorithm leading to the Fries canonical structure is presented for benzenoid hydrocarbons. This is a purely topological approach, which is based on adjacency matrices and the Hadamard procedure of matrix multiplication. The idea is presented for naphthalene, as an example. The Fries canonical-structures are also derived for anthracene, coronene, triphenylene, phenanthrene, benz[a]...