initial checkin of GeneralGraphFunctions.mdpp