Graffinity for graphs