Skip to content
Snippets Groups Projects
Commit a4b7ea9b authored by Udo Eisenbarth's avatar Udo Eisenbarth :speech_balloon:
Browse files

improve dot code creation of NodeGroup

parent f9ae4c69
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ impl Optical for NodeGroup { ...@@ -53,7 +53,7 @@ impl Optical for NodeGroup {
fn to_dot(&self, node_index: &str, name: &str, inverted: bool) -> String { fn to_dot(&self, node_index: &str, name: &str, inverted: bool) -> String {
let inv_string = if inverted { "(inv)" } else { "" }; let inv_string = if inverted { "(inv)" } else { "" };
let mut dot_string = format!( let mut dot_string = format!(
" subgraph \"cluster_{}\" {{\n label=\"{}{}\"\n", " subgraph {} {{\n label=\"{}{}\"\n cluster=true\n",
node_index, name, inv_string node_index, name, inv_string
); );
for node_idx in self.g.node_indices() { for node_idx in self.g.node_indices() {
......
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