I am trying to open an GML format file but couldn't work. Basically, I use a code called ChemTraYzer to produce some files related to GML, i.e. a .gml file and a folder with some required pictures. Here is the .gml file:
graph [
hierarchic 1
label ""
directed 1
node [
id "C"
graphics
[
image "reac.pic/spec_0.png"
]
]
node [
id "[CH3]"
graphics
[
image "reac.pic/spec_2.png"
]
]
node [
id "O"
graphics
[
image "reac.pic/spec_1.png"
]
]
node [
id "[OH]"
graphics
[
image "reac.pic/spec_5.png"
]
]
edge [
source "C"
target "[CH3]"
weight 1
LabelGraphics
[
text "[0]"
fontSize 32
]
]
edge [
source "C"
target "O"
weight 1
LabelGraphics
[
text "[0]"
fontSize 32
]
]
edge [
source "[OH]"
target "[CH3]"
weight 1
LabelGraphics
[
text "[0]"
fontSize 32
]
]
edge [
source "[OH]"
target "O"
weight 1
LabelGraphics
[
text "[0]"
fontSize 32
]
]
]
And a folder called reac.pic which contains some images related to this gml file.
It is expected to export a picture like the following:
I know some Python packages like Networkx or Java programmes like Gephi may be able to open the GML file as required. However, I tried a lot of times but couldn't succeed. I would appreciate it very much if anyone can help me with it. Many thanks!