Pātuhitia tēnei: Optimization algorithms for networks and graphs