Exclude some graphs