Class GraphTranslatorDot
- java.lang.Object
-
- de.unirostock.sems.bives.ds.graph.GraphTranslator
-
- de.unirostock.sems.bives.ds.graph.GraphTranslatorDot
-
public class GraphTranslatorDot extends GraphTranslator
The Class GraphTranslatorDot to translate internal graph structures into DOT format. (e.g. to create images using GraphViz) The resulting graph will look like:digraph BiVeSexport { graph [overlap=false]; edge [len=1.3]; node [fontsize=11]; subgraph clusterc1 { label = "compartment"; color=lightgrey; s2[label="sigb",shape=circle]; s1[label="lacz",shape=circle]; s4[label="x",shape=circle]; s3[label="IPTG",shape=circle]; r3[label="sigb degr",color=yellow,shape=diamond]; r2[label="lacz degr",shape=diamond]; r1[label="sigb syn",color=yellow,shape=diamond]; r4[label="x syn",color=yellow,shape=diamond]; r5[label="lacz syn",color=yellow,shape=diamond]; } s2->r3; s4->r3[color=red,style=dashed,arrowType=normal]; s4->r3[color=blue,style=dashed,arrowType=odot]; s1->r2; r1->s2; s3->r1[color=red,style=dashed,arrowType=normal]; s3->r1[color=blue,style=dashed,arrowType=odot]; r4->s4; s2->r4[color=red,style=dashed,arrowType=normal]; s2->r4[color=blue,style=dashed,arrowType=odot]; r5->s1; s2->r5[color=red,style=dashed,arrowType=normal]; s2->r5[color=blue,style=dashed,arrowType=odot]; label="Diff Graph created by BiVeS"; }
for more information see DotFormatDescription- Author:
- Martin Scharm
-
-
Constructor Summary
Constructors Constructor Description GraphTranslatorDot()
Instantiates a new graph translator for DOT conversion.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
translate(HierarchyNetwork hn)
Translate a hierarchy network.String
translate(ReactionNetwork rn)
Translate a reaction network.
-
-
-
Method Detail
-
translate
public String translate(ReactionNetwork rn)
Description copied from class:GraphTranslator
Translate a reaction network. Might return null if not available.- Specified by:
translate
in classGraphTranslator
- Parameters:
rn
- the internal reaction network- Returns:
- the graph format
-
translate
public String translate(HierarchyNetwork hn)
Description copied from class:GraphTranslator
Translate a hierarchy network. Might return null if not available.- Specified by:
translate
in classGraphTranslator
- Parameters:
hn
- the internal hierarchy network- Returns:
- the graph format
-
-