We reduce the graph isomorphism problem to 2-nilpotent p-groups isomorphism problem (and to finite 2-nilpotent Lie algebras the ring Z/pZ. Furthermore, we show that classifying problems in categories graphs, finite 2-nilpotent p-groups, and 2-nilpotent Lie algebras over Z/pZ are polynomially equivalent and wild.