If you delete the graph from the Sleep app and it comes back later, check if the graph has icon. These graphs are synced from an external service - either Samsung Health, Health Connect, or Google Fit.
This is a companion discussion topic for the original entry at https://sleep.urbandroid.org/docs/faqs/deleted_files_appear.html