Skip to content

Commit

Permalink
Get chain distance properly
Browse files Browse the repository at this point in the history
  • Loading branch information
xchang1 committed Sep 12, 2024
1 parent 33e2fc2 commit 7df2076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bdsg/src/snarl_distance_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3179,7 +3179,7 @@ size_t SnarlDistanceIndex::chain_minimum_length(const net_handle_t& net) const {
assert(is_chain(net));
#endif
if (is_trivial_chain(net)) {
return NodeRecord(net, &snarl_tree_records).get_node_length();
return minimum_length(net);
} else {
return ChainRecord(net, &snarl_tree_records).get_min_length();
}
Expand Down

0 comments on commit 7df2076

Please sign in to comment.