public class XGMML
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
GraphDocument |
graphDoc
The GraphDocument object (XMLBeans mapping of XGMML)
|
Constructor and Description |
---|
XGMML() |
Modifier and Type | Method and Description |
---|---|
static GraphDocument |
convertGraphToXGMML(Graph gr)
Converts internal BiNoM graph representation to GraphDocument
|
static Graph |
convertXGMMLToGraph(GraphDocument xgr)
Converts GraphDocument to internal BiNoM graph representation
(fr.curie.BiNoM.pathways.analysis.structure.Graph)
|
static java.lang.String |
getAttValue(GraphicNode n,
java.lang.String name) |
static GraphDocument |
loadFromXMGML(java.lang.String fn)
Loads XGMML from file
|
static void |
main(java.lang.String[] args) |
static void |
saveToXGMML(GraphDocument graph,
java.lang.String fn)
Saves XGMML to fil
|
public GraphDocument graphDoc
public static void main(java.lang.String[] args)
public static GraphDocument loadFromXMGML(java.lang.String fn) throws java.lang.Exception
fn
- java.lang.Exception
public static void saveToXGMML(GraphDocument graph, java.lang.String fn) throws java.lang.Exception
graph
- fn
- java.lang.Exception
public static java.lang.String getAttValue(GraphicNode n, java.lang.String name)
n
- name
- public static Graph convertXGMMLToGraph(GraphDocument xgr)
xgr
- public static GraphDocument convertGraphToXGMML(Graph gr)
gr
-