utility

Utility algorithms

This module contains logical and mathematical utility functions used by other MDHelper modules.

Functions

depth_first_search

Implements the depth-first search algorithm to find connected components in a graph.

find_connected_nodes

Finds connected components in a graph.

get_closest_factors

Get the \(n\) closest factors for a given number \(N\), sorted in ascending order.

rebin

Rebin discrete data.

replicate

Replicate point(s) in an unit cell along the \(x\)-, \(y\)-, and \(z\)-directions.