Learning graph theory