Hide function g2adj from user and solved conflicts in mat2adj.Rd documentation file with the code