On the implementation of public keys algorithms based on algebraic graphs over finite commutative rings