Paths and cycles Graph theory mathematics