Defined in File PowerlawDegreeSequence.hpp
public NetworKit::Algorithm
(Class Algorithm)
Public Functions
Generates a powerlaw degree sequence with the given minimum and maximum degree, the powerlaw exponent gamma.
minDeg – The minium degree
maxDeg – The maximum degree
gamma – The powerlaw exponent
Generates a powerlaw degree sequence that fits the given degree sequence in terms of minimum, maximum and average degree.
degreeSequence – The degree sequence to fit.
Generates a powerlaw degree sequence that fits the degree sequence of the given graph in terms of minimum, maximum and average degree.
g – The input graph to fit
Tries to set the minimum degree such that the specified average degree is expected.
std::runtime_error – If it is not possible to find a minimum degree such that the expected average is avgDeg.
avgDeg – The average degree
Tries to set the powerlaw exponent gamma such that the specified average degree is expected.
avgDeg – The average degree
minGamma – The minimum gamma to use, default: -1
maxGamma – The maximum gamma to use, default: -6
Sets the minimum degree.
minDeg – The degree that shall be set as minimum degree
Sets the exponent gamma.
gamma – The exponent, must be negative.
Gets the exponent gamma.
gamma
Execute the generation process
Returns the expected average degree.
The expected average degree.