maj graph.py (normalization and denormalization)