On the gonality of graph curves