Modified Graph Code