Test graph library