Clear the graph and free CPU memory */
| 74 | |
| 75 | /** Clear the graph and free CPU memory */ |
| 76 | virtual void clear() { |
| 77 | num_vertex = 0; |
| 78 | num_edge = 0; |
| 79 | decltype(vertex_edges)().swap(vertex_edges); |
| 80 | decltype(edges)().swap(edges); |
| 81 | decltype(vertex_weights)().swap(vertex_weights); |
| 82 | decltype(edge_weights)().swap(edge_weights); |
| 83 | decltype(flat_offsets)().swap(flat_offsets); |
| 84 | } |
| 85 | |
| 86 | /** Flatten the adjacency list to an edge list */ |
| 87 | virtual void flatten() { |
no outgoing calls
no test coverage detected