Oriented graph library