first version of graph library. still work on to do.