queue_prealloc
extern void queue_prealloc(Queue *q, int n);
queue_prealloc(&edges, count * 4 + 10); /* pre-size */