| 79 | } |
| 80 | |
| 81 | Path *Path_Clone(const Path *p) { |
| 82 | Path *clone = rm_malloc(sizeof(Path)); |
| 83 | array_clone(clone->nodes, p->nodes); |
| 84 | array_clone(clone->edges, p->edges); |
| 85 | return clone; |
| 86 | } |
| 87 | |
| 88 | void Path_Reverse(Path *p) { |
| 89 | array_reverse(p->nodes); |