F-ideals and f-graphs