Fix graph import for large files