title: Importing Large iGraph Memory Exhausted
body: <p>I'm trying to import a large LGL file (~2GB) and I am attempting to import this in igraph using</p>
  
  <pre><code>graph = Graph.Read_Lgl("Biggraph.lgl")
  </code></pre>
  
  <p>The error it is throwing is</p>
  
  <pre><code>Traceback (most recent call last):
    File "graph.py", line8, in &lt;module&gt;
      graph = Graph.Read_Lgl("Biggraph.lgl")
  igraph.core.InternalError: Error at foreign.c:359: Parse error in LGL file, line 9997 (memory exhausted), Parse Error
  </code></pre>
  
  <p>I'm unsure as to what exactly is going on here.  The memory exhausted error is making me think that the memory allocated to python (or the underlying C) is being used up when trying to read the file, but it almost happens <strong>instantly</strong>, like it isn't even trying to do much.  Maybe it's looking at the file size and saying 'woah, can't do that.'</p>
  
  <p>Seriously though, I have no idea what is happening.  What I assumed from iGraph is that it can handle extremely large graphs, and I dont think my graph is too large for it.</p>
  
  <p>I did generate the lgl file myself, but I believe I have the syntax correct.  This error doesn't really seem like there is a problem with my lgl file, but I could be wrong ("Parse error" kind of scares me).</p>
  
  <p>I just figured I'd try here and see if anyone more keen on how iGraph operates would know how to quickly solve this problem (or extend the memory).  Thanks.</p>