Graphs with given subgraphs represent all categories