A graph library with common functions