You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/utilities.jl
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -574,7 +574,7 @@ Returns a simple graph with a given finite degree sequence of non-negative integ
574
574
2. [Kleitman and Wang (1973)](https://doi.org/10.1016/0012-365X(73)90037-X)
575
575
"""
576
576
functionhavel_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
578
578
!any(degree -> degree <0, degree_sequence) ||throw(ArgumentError("The degree sequence (degree_sequence) is invalid: it must contain non-negative integers only."))
579
579
# Check whether the given degree sequence is compatible with the given multilayer graph
580
580
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