Adding basic graph library and testing it a bit.