New question #137087 on Gephi:
https://answers.launchpad.net/gephi/+question/137087

Dear all,

Does anybody have the experience of importing a jgrapht digraph object into 
Gephi? Jgrapht is also an open-source JAVA lib for graph theory issues. In 
fact, jgrapht do have a JAVA class named GmlExporter to output a digraph into 
gml format. However, it cannot be parsed by Gephi and always says that 
"Unexpected token type at line 65" while my line 65 is
                id (Bus1 : Bus2)

Please find the entire content of my gml file as follow:

Creator "JGraphT GML Exporter"
Version 1
graph
[
        label ""
        directed 1
        node
        [
                id Bus1
        ]
        node
        [
                id Bus2
        ]
        node
        [
                id Bus3
        ]
        node
        [
                id Bus4
        ]
        node
        [
                id Bus5
        ]
        node
        [
                id Bus6
        ]
        node
        [
                id Bus7
        ]
        node
        [
                id Bus8
        ]
        node
        [
                id Bus9
        ]
        node
        [
                id Bus10
        ]
        node
        [
                id Bus11
        ]
        node
        [
                id Bus12
        ]
        node
        [
                id Bus13
        ]
        node
        [
                id Bus14
        ]
        edge
        [
                id (Bus1 : Bus2)
                source Bus1
                target Bus2
        ]
        edge
        [
                id (Bus1 : Bus5)
                source Bus1
                target Bus5
        ]
        edge
        [
                id (Bus2 : Bus3)
                source Bus2
                target Bus3
        ]
        edge
        [
                id (Bus2 : Bus4)
                source Bus2
                target Bus4
        ]
        edge
        [
                id (Bus2 : Bus5)
                source Bus2
                target Bus5
        ]
        edge
        [
                id (Bus4 : Bus3)
                source Bus4
                target Bus3
        ]
        edge
        [
                id (Bus5 : Bus4)
                source Bus5
                target Bus4
        ]
        edge
        [
                id (Bus4 : Bus7)
                source Bus4
                target Bus7
        ]
        edge
        [
                id (Bus4 : Bus9)
                source Bus4
                target Bus9
        ]
        edge
        [
                id (Bus5 : Bus6)
                source Bus5
                target Bus6
        ]
        edge
        [
                id (Bus6 : Bus11)
                source Bus6
                target Bus11
        ]
        edge
        [
                id (Bus6 : Bus12)
                source Bus6
                target Bus12
        ]
        edge
        [
                id (Bus6 : Bus13)
                source Bus6
                target Bus13
        ]
        edge
        [
                id (Bus8 : Bus7)
                source Bus8
                target Bus7
        ]
        edge
        [
                id (Bus7 : Bus9)
                source Bus7
                target Bus9
        ]
        edge
        [
                id (Bus9 : Bus10)
                source Bus9
                target Bus10
        ]
        edge
        [
                id (Bus9 : Bus14)
                source Bus9
                target Bus14
        ]
        edge
        [
                id (Bus11 : Bus10)
                source Bus11
                target Bus10
        ]
        edge
        [
                id (Bus12 : Bus13)
                source Bus12
                target Bus13
        ]
        edge
        [
                id (Bus13 : Bus14)
                source Bus13
                target Bus14
        ]
]

Sorry for the inconvenience. Thanks a lot.

-- 
You received this question notification because you are a member of
Gephi Team, which is an answer contact for Gephi.

_______________________________________________
Mailing list: https://launchpad.net/~gephi.team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~gephi.team
More help   : https://help.launchpad.net/ListHelp

Répondre à