Reading graph GML files using jGraphT
<p>I'm trying to run Dijkstra's algorithm on a graph. I need to read a graph modelling language (gml file into my Graph, Vertex and Edges Data structures).
The gml file is somewhat like this
graph
[
  directed 0
  node
  [
    id 0
    label "BrighamYoung"
    value 7
  ]
  node
  [
    id 1
    label "FloridaState"
    value 0
  ]
.
.
.
.
Does java have any library that can read this data into my classes?. Or any suggestions on creating a parser in java?. I'm trying out jgraphT but can't seem to figure it out. There's a class GMLImporter but I don't understand how to use it. It requires Vertex Provider and Edge provider. Please suggest some workarounds! </p>