Some Ruby functions to manipulate graph files