title: Networkx read_gml error "networkx.exception.NetworkXError: cannot tokenize u'graph' at (3, 1)"
body: <p>I'm trying to use networkx to read in a gml file (pretty simple right?), except whenever I try to read in the file, I get the error "networkx.exception.NetworkXError: cannot tokenize u'graph' at (3, 1)" I'm not too familiar with gml or networkx, so I haven't been able to diagnose the problem myself.</p>
  
  <p>What's even weirder is that my coworker will run the exact same command with the exact same file, and it will execute without error. I've uninstalled and reinstalled networkx several times at this point, can anyone help determine what the error could be coming from?</p>
  
  <pre><code>import networkx as nx
  g = nx.read_gml('disciplineNetwork.gml')
  </code></pre>
  
  <p>Traceback (most recent call last):</p>
  
  <blockquote>
    <p>File "", line 1, in </p>
    
    <p>File "", line 2, in read_gml</p>
    
    <p>File "/usr/local/lib/python2.7/dist-packages/networkx/utils/decorators.py", line 220, in _open_file
        result = func(*new_args, **kwargs)</p>
    
    <p>File "/usr/local/lib/python2.7/dist-packages/networkx/readwrite/gml.py", line 210, in read_gml
        G = parse_gml_lines(filter_lines(path), label, destringizer)</p>
    
    <p>File "/usr/local/lib/python2.7/dist-packages/networkx/readwrite/gml.py", line 383, in parse_gml_lines
        graph = parse_graph()</p>
    
    <p>File "/usr/local/lib/python2.7/dist-packages/networkx/readwrite/gml.py", line 372, in parse_graph
        curr_token, dct = parse_kv(next(tokens))</p>
    
    <p>File "/usr/local/lib/python2.7/dist-packages/networkx/readwrite/gml.py", line 347, in parse_kv
        curr_token = next(tokens)</p>
    
    <p>File "/usr/local/lib/python2.7/dist-packages/networkx/readwrite/gml.py", line 323, in tokenize
        (line[pos:], lineno + 1, pos + 1))</p>
    
    <p>networkx.exception.NetworkXError: cannot tokenize u'graph' at (3, 1)</p>
  </blockquote>