Skip to content
Snippets Groups Projects
Commit 868812fc authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Fixed minor error

parent fafe61a4
No related branches found
No related tags found
2 merge requests!105version 0.2.0,!77Support for recurrent networks
Pipeline #39478 passed
...@@ -91,7 +91,12 @@ void Aidge::GraphView::save(std::string path, bool verbose, bool showProducers) ...@@ -91,7 +91,12 @@ void Aidge::GraphView::save(std::string path, bool verbose, bool showProducers)
} }
if (node_ptr == mRootNode) { if (node_ptr == mRootNode) {
nodeCls += "_rootCls"; if (nodeCls.empty()) {
nodeCls = ":::rootCls";
}
else {
nodeCls += "_rootCls";
}
} }
if (node_ptr == mRootNode || node_ptr->type() != "Producer" || showProducers) { if (node_ptr == mRootNode || node_ptr->type() != "Producer" || showProducers) {
...@@ -175,7 +180,7 @@ void Aidge::GraphView::save(std::string path, bool verbose, bool showProducers) ...@@ -175,7 +180,7 @@ void Aidge::GraphView::save(std::string path, bool verbose, bool showProducers)
std::fprintf(fp, "classDef producerCls fill:#ccf\n"); std::fprintf(fp, "classDef producerCls fill:#ccf\n");
std::fprintf(fp, "classDef genericCls fill:#f9f9ff,stroke-width:1px,stroke-dasharray: 5 5\n"); std::fprintf(fp, "classDef genericCls fill:#f9f9ff,stroke-width:1px,stroke-dasharray: 5 5\n");
std::fprintf(fp, "classDef metaCls stroke-width:5px\n"); std::fprintf(fp, "classDef metaCls stroke-width:5px\n");
std::fprintf(fp, "classDef _rootCls stroke:#f00\n"); std::fprintf(fp, "classDef rootCls stroke:#f00\n");
std::fprintf(fp, "classDef producerCls_rootCls stroke:#f00,fill:#ccf\n"); std::fprintf(fp, "classDef producerCls_rootCls stroke:#f00,fill:#ccf\n");
std::fprintf(fp, "classDef genericCls_rootCls stroke:#f00,fill:#f9f9ff,stroke-width:1px,stroke-dasharray: 5 5\n"); std::fprintf(fp, "classDef genericCls_rootCls stroke:#f00,fill:#f9f9ff,stroke-width:1px,stroke-dasharray: 5 5\n");
std::fprintf(fp, "classDef metaCls_rootCls stroke:#f00,stroke-width:5px\n"); std::fprintf(fp, "classDef metaCls_rootCls stroke:#f00,stroke-width:5px\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment