networkit.helpers

exception networkit.helpers.ReducedFunctionalityWarning

Bases: Warning

Reduced networkit functionality warning

networkit.helpers.pystring(stdstring)

Convert a std::string (= python byte string) to a normal Python string.

Parameters:

stdstring (str) – Input python byte string.

Returns:

Python string.

Return type:

pystring

networkit.helpers.ranked(sample)

Given a list of numbers, this function computes the rank of each value and returns a list of ranks where result[i] is the rank of the i-th element in the given sample. Currently used in networkit.profiling.stat.

Parameters:

sample (list(float)) – Input list of values.

Returns:

Ranking of input values.

Return type:

list(float)

networkit.helpers.stdstring(pystring)

Convert a Python string to a bytes object which is automatically coerced to std::string.

Parameters:

pystring (str) – Input python string.

Returns:

Python bytes string.

Return type:

stdstring