-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
I'm trying to import an edgelist file with no success.
My input file is a single edge; the file is:
0, 1
My code is as follows (<input file> substitutes for the file path):
import jgrapht as j
input_file = <input file>
e = j.io.edgelist.parse_edgelist_csv(input_file, format='edgelist')I get the following error:
Traceback (most recent call last):
File "<python file>", line 12, in <module>
e = j.io.edgelist.parse_edgelist_csv(input_file, format='edgelist')
File "<....>/jgrapht/io/edgelist.py", line 532 in parse_edgelist_csv
return _import_edgelist_with_string_ids("string_csv", False, input_string, *args)
File "<....>/jgrapht/io/edgelist.py", line 23 in _import_edgelist_with_string_ids
res = alg_method(filename_or_string_as_bytearray, *args)
File "<....>/jgrapht/backend.py", line 780, in jgrapht_import_edgelist_noattrs_string_csv
return _backend_jgrapht_import_edgelist_noattrs_string_csv(BYTEARRAY, arg2, arg3, arg4, arg5)
', 'ror: Failed to import CSV graph: line 1:38 mismatched innput '<EOF>' expecting {'
', SEPARATOR}
I'm running this in a conda environment, Python 3.8, with no other installed packages than those installed when installing jgrapht, on an Ubuntu VM.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels