Changeset 2386:81b47fc5c444 in lemon-0.x for test/max_matching_test.cc
- Timestamp:
- 03/02/07 19:04:28 (14 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3217
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/max_matching_test.cc
r2116 r2386 75 75 if ( mate[v]!=INVALID ) ++s; 76 76 } 77 int size= (int)s/2; //size will be used as the size of a maxmatching77 int size=int(s/2); //size will be used as the size of a maxmatching 78 78 79 79 for(NodeIt v(g); v!=INVALID; ++v) { … … 93 93 if ( mate[v]!=INVALID ) ++s; 94 94 } 95 check ( (int)s/2== size, "The size does not equal!" );95 check ( int(s/2) == size, "The size does not equal!" ); 96 96 97 97 Graph::NodeMap<MaxMatching<Graph>::pos_enum> pos1(g); … … 104 104 if ( mate[v]!=INVALID ) ++s; 105 105 } 106 check ( (int)s/2== size, "The size does not equal!" );106 check ( int(s/2) == size, "The size does not equal!" ); 107 107 108 108 Graph::NodeMap<MaxMatching<Graph>::pos_enum> pos2(g); … … 116 116 if ( mate[v]!=INVALID ) ++s; 117 117 } 118 check ( (int)s/2== size, "The size does not equal!" );118 check ( int(s/2) == size, "The size does not equal!" ); 119 119 120 120 Graph::NodeMap<MaxMatching<Graph>::pos_enum> pos(g); … … 177 177 if ( pos[v]==max_matching.A ) ++barrier; 178 178 } 179 int expected_size= (int)( countNodes(g)-num_comp+barrier)/2;179 int expected_size=int( countNodes(g)-num_comp+barrier)/2; 180 180 check ( size==expected_size, "The size of the matching is wrong." ); 181 181
Note: See TracChangeset
for help on using the changeset viewer.