Skip to content

Commit 210c314

Browse files
committed
Rename
1 parent ba205b8 commit 210c314

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/order.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ struct DegreeBucketsColPack{T} <: AbstractDegreeBuckets{T}
161161
positions::Vector{T}
162162
end
163163

164-
struct DegreeBucketsFast{T} <: AbstractDegreeBuckets{T}
164+
struct DegreeBucketsSMC{T} <: AbstractDegreeBuckets{T}
165165
degrees::Vector{T}
166166
bucket_storage::Vector{T}
167167
bucket_low::Vector{T}
@@ -188,7 +188,7 @@ function DegreeBucketsColPack(::Type{T}, degrees::Vector{T}, dmax::Integer) wher
188188
return DegreeBucketsColPack(degrees, buckets, positions)
189189
end
190190

191-
function DegreeBucketsFast(::Type{T}, degrees::Vector{T}, dmax::Integer) where {T}
191+
function DegreeBucketsSMC(::Type{T}, degrees::Vector{T}, dmax::Integer) where {T}
192192
# number of vertices per degree class
193193
deg_count = zeros(T, dmax + 1)
194194
for d in degrees
@@ -208,13 +208,13 @@ function DegreeBucketsFast(::Type{T}, degrees::Vector{T}, dmax::Integer) where {
208208
bucket_storage[positions[v]] = v
209209
deg_count[d + 1] -= 1
210210
end
211-
return DegreeBucketsFast(degrees, bucket_storage, bucket_low, bucket_high, positions)
211+
return DegreeBucketsSMC(degrees, bucket_storage, bucket_low, bucket_high, positions)
212212
end
213213

214214
maxdeg(db::DegreeBucketsColPack) = length(db.buckets) - 1
215-
maxdeg(db::DegreeBucketsFast) = length(db.bucket_low) - 1
215+
maxdeg(db::DegreeBucketsSMC) = length(db.bucket_low) - 1
216216

217-
function nonempty_bucket(db::DegreeBucketsFast, d::Integer)
217+
function nonempty_bucket(db::DegreeBucketsSMC, d::Integer)
218218
return db.bucket_high[d + 1] >= db.bucket_low[d + 1]
219219
end
220220
function nonempty_bucket(db::DegreeBucketsColPack, d::Integer)
@@ -271,7 +271,7 @@ function pop_next_candidate!(db::AbstractDegreeBuckets; direction::Symbol)
271271
end
272272

273273
function update_bucket!(
274-
db::DegreeBucketsFast, v::Integer; degtype::Symbol, direction::Symbol
274+
db::DegreeBucketsSMC, v::Integer; degtype::Symbol, direction::Symbol
275275
)
276276
(; degrees, bucket_storage, bucket_low, bucket_high, positions) = db
277277
d, p = degrees[v], positions[v]
@@ -349,7 +349,7 @@ function vertices(
349349
db = if reproduce_colpack
350350
DegreeBucketsColPack(T, degrees, max_degrees)
351351
else
352-
DegreeBucketsFast(T, degrees, max_degrees)
352+
DegreeBucketsSMC(T, degrees, max_degrees)
353353
end
354354
nv = nb_vertices(g)
355355
π = Vector{T}(undef, nv)
@@ -393,7 +393,7 @@ function vertices(
393393
db = if reproduce_colpack
394394
DegreeBucketsColPack(T, degrees, maxd2)
395395
else
396-
DegreeBucketsFast(T, degrees, maxd2)
396+
DegreeBucketsSMC(T, degrees, maxd2)
397397
end
398398
π = Vector{T}(undef, n)
399399
index_π = (direction == :low2high) ? (1:n) : (n:-1:1)

0 commit comments

Comments
 (0)