Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

group nodes with subgraphs

I'd like to group some nodes with the following code

digraph dataflow {     subgraph pipeline {         relations;         synonyms;         articles;     }     subgraph lucene {         index;         search;     }     training_data - > index;     relations - > search;     synonyms - > index;     articles - > index;     training_data - > evaluation; } 

But dot doesn't care about the subgraphs:

example dot graph

like image 739
Reactormonk Avatar asked Jul 11 '12 13:07

Reactormonk


1 Answers

Try prefixing your subgraphs with 'cluster_':

digraph dataflow {     subgraph cluster_pipeline {         relations;         synonyms;         articles;     }     subgraph cluster_lucene {         index;         search;     }     training_data -> index;     relations -> search;     synonyms -> index;     articles -> index;     training_data -> evaluation; } 
like image 181
Rick Avatar answered Oct 11 '22 20:10

Rick