Skip to content

Commit

Permalink
return only neighbors, no distances in neighbornets
Browse files Browse the repository at this point in the history
  • Loading branch information
coraallensavietta committed Sep 21, 2020
1 parent deec6c3 commit f269a74
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/moves_semidirected.jl
Original file line number Diff line number Diff line change
Expand Up @@ -942,8 +942,8 @@ end
uniqueneighbornets(net::HybridNetwork, nohybridladder::Bool, no3cycle::Bool,
constraints=TopologyConstraint[]::Vector{TopologyConstraint})
Return tuple of arrays: unique NNI neighbors of a particular topology and their
hardwired cluster distances from the original net.
Return unique NNI neighbors of topology `net`.
Assumptions: rooting will not change during an NNI
"""
function uniqueneighbornets(net::HybridNetwork, nohybridladder::Bool, no3cycle::Bool,
Expand All @@ -967,6 +967,5 @@ function uniqueneighbornets(net::HybridNetwork, nohybridladder::Bool, no3cycle::
error("Duplicate net does not have a HWCD of zero with another net")
end
deleteat!(neighbors, duplicateindices)
deleteat!(distances, duplicateindices)
return neighbors, distances
return neighbors
end

0 comments on commit f269a74

Please sign in to comment.