nngt.lib.InvalidArgument |
Error raised when an argument is invalid. |
nngt.lib.custom (graph[, values, elist]) |
|
nngt.lib.decorate (func, caller[, extras]) |
decorate(func, caller) decorates a function using a caller. |
nngt.lib.delta_distrib ([graph, elist, num, …]) |
Delta distribution for edge attributes. |
nngt.lib.deprecated (version[, reason, …]) |
Decorator to mark deprecated functions. |
nngt.lib.find_idx_nearest (array, values) |
Find the indices of the nearest elements of values in a sorted array. |
nngt.lib.gaussian_distrib (graph[, elist, …]) |
Gaussian distribution for edge attributes. |
nngt.lib.graph_tool_check (version_min) |
Raise an error for function not working with old versions of graph-tool. |
nngt.lib.is_integer (obj) |
|
nngt.lib.lin_correlated_distrib (graph[, …]) |
|
nngt.lib.log_correlated_distrib (graph[, …]) |
|
nngt.lib.lognormal_distrib (graph[, elist, …]) |
|
nngt.lib.mpi_barrier (func) |
|
nngt.lib.mpi_checker ([logging]) |
Decorator used to check for mpi and make sure only rank zero is used to store and generate the graph if the mpi algorithms are activated. |
nngt.lib.mpi_random (func) |
Decorator asserting that all processes start with same random seed when using mpi. |
nngt.lib.nonstring_container (obj) |
Returns true for any iterable which is not a string or byte sequence. |
nngt.lib.not_implemented (*args, **kwargs) |
|
nngt.lib.num_mpi_processes () |
Returns the number of MPI processes (1 if MPI is not used) |
nngt.lib.on_master_process () |
Check whether the current code is executing on the master process (rank 0) if MPI is used. |
nngt.lib.seed ([msd, seeds]) |
Seed the random generator used by NNGT (i.e. |
nngt.lib.uniform_distrib (graph[, elist, …]) |
Uniform distribution for edge attributes. |