Ticket #9229: mcgregor_common_subgraphs.diff

File mcgregor_common_subgraphs.diff, 1.2 KB (added by Jakob Lykke Andersen <jlandersen@…>, 9 years ago)
  • boost/graph/mcgregor_common_subgraphs.hpp

     
    327327            put(correspondence_map_2_to_1, new_vertex2, new_vertex1);
    328328            vertex_stack1.push(new_vertex1);
    329329
    330             // Only output sub-graphs larger than a single vertex
    331             if (new_graph_size > 1) {
    332            
    333               // Returning false from the callback will cancel iteration
    334               if (!subgraph_callback(correspondence_map_1_to_2,
    335                                      correspondence_map_2_to_1,
    336                                      new_graph_size)) {
    337                 return (false);
    338               }
     330            // Returning false from the callback will cancel iteration
     331            if (!subgraph_callback(correspondence_map_1_to_2,
     332                                   correspondence_map_2_to_1,
     333                                   new_graph_size)) {
     334              return (false);
    339335            }
    340336     
    341337            // Depth-first search into the state space of possible sub-graphs