a graph api written in c with a object-oriented programming style