graph library improved