lets try to speed up the has_graph scope with a boolean index