On computation of the topological invariants of metal-organic networks