title: Extracting data from a GML file
body: <p>I have a GML(Graph (not Graffiti) Modeling Language) file from which I want to create a mapping of IDs to labels. I am at a loss as to how I can do this since my list manipulations do not seem to work. I tried using the example which specifies how to use two delimiters, but it would not work on my file.</p>
  
  <p>Can someone please guide me?</p>
  
  <p>The GML file is arranged as follows:</p>
  
  <pre><code>graph [
    node [
      id 0
      label "24"
    ]
    node [
      id 1
      label "25"
    ]
    node [
      id 2
      label "26"
    ]
    node [
      id 3
      label "27"
    ]
    node [
      id 4
      label "20"
    ]
    node [
      id 5
      label "21"
    ]
  (... some more nodes)
    edge [
      source 0
      target 75
      weight 4
    ]
    edge [
      source 0
      target 68
      weight 2
    ]
  (many more edges)
  ]
  </code></pre>
  
  <p>I want to extract the data in each node block and create a mapping of the node ID to the node label. For example, the first node's mapping would be 0->24 and so on. I am not worried about the edge information.</p>
  
  <p>Thanks in advance for any help.</p>