fork download
  1. #include <utility>
  2.  
  3. struct vertex_list_graph_tag {};
  4. struct incidence_graph_tag {};
  5.  
  6. struct graph_traits {
  7. using vertex_descriptor = int;
  8. using edge_descriptor = std::pair<vertex_descriptor, vertex_descriptor>;
  9. // ...
  10. using traversal_category = struct : vertex_list_graph_tag, incidence_graph_tag {};
  11. };
  12.  
  13. int main () {}
  14.  
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty