Configuration of nilpotent groups and isomorphism