Adopted to error return format of gharial module and started implementing graph manageent functions