Perhaps this will answer your question:
http://stackoverflow.com/questions/27637791/how-to-import-a-graphml-to-jgrapht
IIRC, the current version of JgraphT has a graphml exporter only. We
obviously welcome a nice import class.
Judging from the code:
https://bitbucket.org/sorend/jgrapht-sna/src/cc8a3d6fbef2472cb5963a7ba84b393812154d4a/src/main/java/dk/aaue/sna/ext/graphml/GraphMLImporter.java?at=default
it would not be very hard to include this into JgraphT.
br,
Joris
On Wed, Nov 18, 2015 at 4:57 AM, L W <abt...@ms...> wrote:
> Hello,
>
> I'm trying to read a stored graph via GraphReader. It is not working,
> becaue at the moment I am using
> .graphml which uses <edge> and <vertex>. GraphReader seems to expect "p"
> and "e" as names for vertices and edges correspondingly (if
> (cols[0].equals("p")) {).
> Is there any exporter or writer satisfying the format required by
> GraphReader?
> Beside using serializables instead of e.g., .graphml is there any way of
> writing and reading with jgrapht?
> In advance thank you very much for your answer
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> jgrapht-users mailing list
> jgr...@li...
> https://lists.sourceforge.net/lists/listinfo/jgrapht-users
>
>
|