A discrete hughes model for pedestrian flow on graphs