Applications Of The Helmholtz-Hodge Decomposition To Networks And Random Processes