Source: https://www.sjctni.edu/Department/cs/eLecture/CMR_Graphical Method -Special cases.pdf