| 698 | } |
| 699 | |
| 700 | void BuildArrayTree(const Model& model, Node* tree) { |
| 701 | // Delimit array names by path "/", then place into a tree based on this path. |
| 702 | for (const auto& array_id : model.GetArrayMap()) { |
| 703 | std::vector<string> prefixes = absl::StrSplit(array_id.first, '/'); |
| 704 | std::reverse(prefixes.begin(), prefixes.end()); |
| 705 | int64 math_ops; // Temporary storage for math ops used during recursion. |
| 706 | InsertNode(model, array_id.first, tree, prefixes, &math_ops); |
| 707 | } |
| 708 | } |
| 709 | |
| 710 | string GetGraphLabel(const Model& model, const string& graph_name) { |
| 711 | // Use HTML-like labels (http://www.graphviz.org/doc/info/shapes.html#html) |
no test coverage detected