Creates a new graph with the specified @a name and appends it to the list @a head.
| 469 | /// Creates a new graph with the specified @a name and appends it |
| 470 | /// to the list @a head. |
| 471 | Graph *create(ListNode &head, const char *name) |
| 472 | { |
| 473 | Graph *graph = CE_NEW(default_allocator(), Graph)(default_allocator()); |
| 474 | graph->_name = name; |
| 475 | list::add(graph->_node, head); |
| 476 | return graph; |
| 477 | } |
| 478 | |
| 479 | /// Destroys the specified @a graph. |
| 480 | void destroy(Graph *graph) |
no test coverage detected