Organisation of graph routines