modify rank graph