Skip to content

Commit 01f3d54

Browse files
2 parents a0bccbe + a8a8591 commit 01f3d54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilities.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ Returns a simple graph with a given finite degree sequence of non-negative integ
574574
2. [Kleitman and Wang (1973)](https://doi.org/10.1016/0012-365X(73)90037-X)
575575
"""
576576
function havel_hakimi_(empty_graph::SimpleGraph, degree_sequence::Vector{<:Integer}) # Please think about a decent name!
577-
# Check wether the given degree sequence contains only non-negative integers
577+
# Check whether the given degree sequence contains only non-negative integers
578578
!any(degree -> degree < 0, degree_sequence) || throw(ArgumentError("The degree sequence (degree_sequence) is invalid: it must contain non-negative integers only."))
579579
# Check whether the given degree sequence is compatible with the given multilayer graph
580580
nv(empty_graph) == length(degree_sequence) || throw(ArgumentError("The degree sequence (degree_sequence) and the multilayer graph (empty_mg) are incompatible: the length of the degree sequence doesn't coincide with the number of vertices."))

0 commit comments

Comments
 (0)