public class GraphTranslatorGraphML extends GraphTranslator
<graphml> <key attr.name="name" attr.type="string" for="node" id="name"/> <key attr.name="node set" attr.type="string" for="node" id="ns"> <default>species</default> </key> <key attr.name="version" attr.type="int" for="all" id="vers"> <default>0</default> </key> <key attr.name="modifier" attr.type="string" for="edge" id="mod"> <default>none</default> </key> <graph edgedefault="directed" id="G"> <node id="c1"> <data key="vers">0</data> <data key="name">compartment</data> <graph edgedefault="directed" id="G1"> <node id="s2"> <data key="ns">species</data> <data key="vers">0</data> <data key="name">sigb</data> </node> <node id="s1"> <data key="ns">species</data> <data key="vers">0</data> <data key="name">lacz</data> </node> <node id="r3"> <data key="ns">reaction</data> <data key="vers">2</data> <data key="name">sigb degr</data> </node> <!-- more nodes --> </graph> </node> <edge source="s2" target="r3"> <data key="mod">none</data> <data key="vers">0</data> </edge> <edge source="s4" target="r3"> <data key="mod">stimulator</data> <data key="vers">-1</data> </edge> <!-- more edges --> </graph> </graphml>for more information see GraphmlFormatDescription
Constructor and Description |
---|
GraphTranslatorGraphML() |
Modifier and Type | Method and Description |
---|---|
org.jdom2.Document |
getGraphmlDocument()
Gets the graphml document.
|
String |
translate(HierarchyNetwork hn)
Translate a hierarchy network.
|
String |
translate(ReactionNetwork rn)
Translate a reaction network.
|
public String translate(HierarchyNetwork hn)
GraphTranslator
translate
in class GraphTranslator
hn
- the internal hierarchy networkpublic String translate(ReactionNetwork rn)
GraphTranslator
translate
in class GraphTranslator
rn
- the internal reaction networkpublic org.jdom2.Document getGraphmlDocument()
Copyright © 2019 SEMS project @ University of Rostock. All rights reserved.