Prototype for a graph library