Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/fusiontrees/fusiontrees.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ function Base.hash(f::FusionTree{I}, h::UInt) where {I}
end
return h
end
# Hashing the first tree pair covers the block's defining data `(uncoupled, isdual)`, while
# also disambiguating the ad-hoc single-pair blocks constructed in `planar_trace`
Base.hash(b::FusionTreeBlock, h::UInt) = isempty(b) ? h : hash(first(fusiontrees(b)), h)

function Base.:(==)(f₁::FusionTree{I, N}, f₂::FusionTree{I, N}) where {I <: Sector, N}
f₁.coupled == f₂.coupled || return false
@inbounds for i in 1:N
Expand Down
Loading