Branch Coverage

blib/lib/Graph/Undirected/Hamiltonicity/Transforms.pm
Criterion Covered Total %
branch 44 46 95.6


line true false branch
43 1442 1217 if ($degree != 2)
53 1736 698 if ($g1->get_edge_attribute($vertex, $neighbor_vertex, "required"))
68 192 12 if ($required_graph->edges) { }
92 1213 492 unless $required_graph->degree($vertex) == 1
93 0 492 if $eliminated{$vertex}++
99 434 58 unless $g1->has_edge($vertex, $other_vertex)
108 47 74 if ($deleted_edges) { }
109 40 7 $deleted_edges == 1 ? :
127 1000 702 if $required_graph->degree($required_vertex) != 2
132 1404 153 if $required
137 6 147 unless $g1->has_edge($required_vertex, $neighbor_vertex)
148 60 63 if ($deleted_edges) { }
149 22 38 $deleted_edges == 1 ? :
173 829 6523 if $common_neighbors{$neighbor_vertex}
179 829 6517 if $common_neighbors{$neighbor_vertex}
198 7271 839 unless $vertex_1_neighbors{$neighbor_vertex}
219 975 3 if ($chunk =~ /=/u) { }
223 1 974 if $endpoints[0] == $endpoints[1]
236 973 1 unless $g->has_edge(@$edge_ref)
262 303 3828 if $v1 == $v2
280 0 69 if ($e + $edges_to_add > $max_edges)
291 272 3678 if $v1 == $v2
292 1516 2162 if $g1->has_edge($v1, $v2)