Reformat graphlib interface