Branch Coverage

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


line true false branch
43 1562 1258 if ($degree != 2)
53 1748 768 if ($g1->get_edge_attribute($vertex, $neighbor_vertex, "required"))
68 199 12 if ($required_graph->edges) { }
92 1231 482 unless $required_graph->degree($vertex) == 1
93 0 482 if $eliminated{$vertex}++
99 425 57 unless $g1->has_edge($vertex, $other_vertex)
108 44 75 if ($deleted_edges) { }
109 35 9 $deleted_edges == 1 ? :
127 982 728 if $required_graph->degree($required_vertex) != 2
132 1456 179 if $required
137 7 172 unless $g1->has_edge($required_vertex, $neighbor_vertex)
148 69 52 if ($deleted_edges) { }
149 24 45 $deleted_edges == 1 ? :
173 803 6581 if $common_neighbors{$neighbor_vertex}
179 803 6570 if $common_neighbors{$neighbor_vertex}
198 7288 813 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 335 3828 if $v1 == $v2
280 0 70 if ($e + $edges_to_add > $max_edges)
291 267 2967 if $v1 == $v2
292 1014 1953 if $g1->has_edge($v1, $v2)