Averaging dynamics on graphs: models, methods and applications