The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: CastError
Message: Couldn't cast
graph_id: int64
num_nodes: int64
edge_index: list<item: list<item: int64>>
child 0, item: list<item: int64>
child 0, item: int64
node_label_ids: list<item: int64>
child 0, item: int64
has_node_labels: bool
alignments: list<item: list<item: list<item: int64>>>
child 0, item: list<item: list<item: int64>>
child 0, item: list<item: int64>
child 0, item: int64
graph_id_2: int64
ged: double
exact_elapsed_seconds: double
graph_id_1: int64
to
{'graph_id_1': Value('int64'), 'graph_id_2': Value('int64'), 'ged': Value('float64'), 'alignments': List(List(List(Value('int64')))), 'exact_elapsed_seconds': Value('float64')}
because column names don't match
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1827, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 613, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2378, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2306, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
graph_id: int64
num_nodes: int64
edge_index: list<item: list<item: int64>>
child 0, item: list<item: int64>
child 0, item: int64
node_label_ids: list<item: int64>
child 0, item: int64
has_node_labels: bool
alignments: list<item: list<item: list<item: int64>>>
child 0, item: list<item: list<item: int64>>
child 0, item: list<item: int64>
child 0, item: int64
graph_id_2: int64
ged: double
exact_elapsed_seconds: double
graph_id_1: int64
to
{'graph_id_1': Value('int64'), 'graph_id_2': Value('int64'), 'ged': Value('float64'), 'alignments': List(List(List(Value('int64')))), 'exact_elapsed_seconds': Value('float64')}
because column names don't match
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1369, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 948, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1694, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1879, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
graph_id_1 int64 | graph_id_2 int64 | ged float64 | alignments list | exact_elapsed_seconds float64 |
|---|---|---|---|---|
0 | 1 | 8 | [
[
[
0,
3
],
[
1,
0
],
[
2,
1
],
[
3,
-1
],
[
4,
4
],
[
5,
-1
],
[
6,
2
],
[
7,
-1
]
]
] | 0.038965 |
0 | 2 | 6 | [
[
[
0,
-1
],
[
1,
5
],
[
2,
2
],
[
3,
3
],
[
4,
0
],
[
5,
-1
],
[
6,
1
],
[
7,
4
]
]
] | 0.040722 |
0 | 3 | 4 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
-1
],
[
4,
4
],
[
5,
3
],
[
6,
6
],
[
7,
5
]
]
] | 0.043132 |
0 | 4 | 3 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
-1
]
]
] | 0.043343 |
0 | 5 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
4
],
[
4,
-1
],
[
5,
3
],
[
6,
6
],
[
7,
5
]
]
] | 0.043206 |
0 | 6 | 7 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
],
[
-1,
9
]
]
] | 0.044475 |
0 | 7 | 3 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
]
]
] | 0.042593 |
0 | 8 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
]
]
] | 0.043349 |
0 | 9 | 2 | [
[
[
0,
5
],
[
1,
6
],
[
2,
2
],
[
3,
3
],
[
4,
0
],
[
5,
7
],
[
6,
1
],
[
7,
4
]
]
] | 0.037241 |
0 | 10 | 6 | [
[
[
0,
1
],
[
1,
0
],
[
2,
6
],
[
3,
2
],
[
4,
8
],
[
5,
7
],
[
6,
4
],
[
7,
5
],
[
-1,
3
]
]
] | 0.04195 |
0 | 11 | 4 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
5
],
[
5,
8
],
[
6,
6
],
[
7,
7
],
[
-1,
4
]
]
] | 0.036434 |
0 | 12 | 10 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
-1
],
[
5,
-1
],
[
6,
-1
],
[
7,
-1
]
]
] | 0.053761 |
0 | 13 | 4 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
5
],
[
4,
7
],
[
5,
3
],
[
6,
4
],
[
7,
6
]
]
] | 0.049183 |
0 | 14 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
]
]
] | 0.057203 |
0 | 15 | 4 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
]
]
] | 0.07147 |
0 | 16 | 6 | [
[
[
0,
0
],
[
1,
9
],
[
2,
6
],
[
3,
3
],
[
4,
4
],
[
5,
1
],
[
6,
7
],
[
7,
8
],
[
-1,
5
],
[
-1,
2
]
]
] | 0.084167 |
0 | 17 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
-1
],
[
4,
4
],
[
5,
3
],
[
6,
5
],
[
7,
-1
]
]
] | 0.051325 |
0 | 18 | 4 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
-1
],
[
5,
6
],
[
6,
5
],
[
7,
4
]
]
] | 0.050764 |
0 | 19 | 3 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
]
]
] | 0.048741 |
0 | 20 | 4 | [
[
[
0,
2
],
[
1,
6
],
[
2,
4
],
[
3,
1
],
[
4,
0
],
[
5,
5
],
[
6,
7
],
[
7,
3
]
]
] | 0.047803 |
0 | 21 | 4 | [
[
[
0,
0
],
[
1,
8
],
[
2,
4
],
[
3,
1
],
[
4,
2
],
[
5,
3
],
[
6,
7
],
[
7,
6
],
[
-1,
5
]
]
] | 0.056078 |
0 | 22 | 2 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
]
]
] | 0.041482 |
0 | 23 | 4 | [
[
[
0,
4
],
[
1,
3
],
[
2,
0
],
[
3,
5
],
[
4,
2
],
[
5,
8
],
[
6,
7
],
[
7,
1
],
[
-1,
6
]
]
] | 0.068839 |
0 | 24 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
5
],
[
4,
6
],
[
5,
3
],
[
6,
8
],
[
7,
7
],
[
-1,
4
]
]
] | 0.052707 |
0 | 25 | 2 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
7
],
[
7,
8
],
[
-1,
6
]
]
] | 0.08325 |
0 | 26 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
-1
]
]
] | 0.074222 |
0 | 27 | 7 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
6
],
[
5,
5
],
[
6,
8
],
[
7,
7
],
[
-1,
9
],
[
-1,
4
]
]
] | 0.064492 |
0 | 28 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
9
],
[
4,
5
],
[
5,
3
],
[
6,
4
],
[
7,
8
],
[
-1,
6
],
[
-1,
7
]
]
] | 0.057625 |
0 | 29 | 5 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
]
]
] | 0.039313 |
0 | 30 | 6 | [
[
[
0,
6
],
[
1,
7
],
[
2,
2
],
[
3,
3
],
[
4,
0
],
[
5,
8
],
[
6,
1
],
[
7,
9
],
[
-1,
4
],
[
-1,
5
]
]
] | 0.045679 |
0 | 31 | 4 | [
[
[
0,
0
],
[
1,
8
],
[
2,
4
],
[
3,
1
],
[
4,
2
],
[
5,
3
],
[
6,
6
],
[
7,
5
],
[
-1,
7
]
]
] | 0.04586 |
0 | 32 | 3 | [
[
[
0,
0
],
[
1,
-1
],
[
2,
4
],
[
3,
1
],
[
4,
2
],
[
5,
3
],
[
6,
5
],
[
7,
6
]
]
] | 0.034098 |
0 | 33 | 5 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
8
],
[
6,
5
],
[
7,
6
],
[
-1,
7
],
[
-1,
9
]
]
] | 0.058148 |
0 | 34 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
-1
],
[
7,
-1
]
]
] | 0.042967 |
0 | 35 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
8
],
[
-1,
7
],
[
-1,
9
]
]
] | 0.041071 |
0 | 36 | 4 | [
[
[
0,
0
],
[
1,
8
],
[
2,
4
],
[
3,
1
],
[
4,
2
],
[
5,
3
],
[
6,
6
],
[
7,
5
],
[
-1,
7
]
]
] | 0.034174 |
0 | 37 | 4 | [
[
[
0,
6
],
[
1,
7
],
[
2,
2
],
[
3,
3
],
[
4,
0
],
[
5,
8
],
[
6,
1
],
[
7,
4
],
[
-1,
5
]
]
] | 0.02626 |
0 | 38 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
7
],
[
3,
4
],
[
4,
2
],
[
5,
3
],
[
6,
6
],
[
7,
8
],
[
-1,
5
]
]
] | 0.049062 |
0 | 39 | 4 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
-1
],
[
4,
5
],
[
5,
3
],
[
6,
6
],
[
7,
4
]
]
] | 0.047621 |
0 | 40 | 8 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
]
]
] | 0.109363 |
0 | 41 | 5 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
6
],
[
4,
4
],
[
5,
3
],
[
6,
8
],
[
7,
7
],
[
-1,
5
]
]
] | 0.081149 |
0 | 42 | 8 | [
[
[
0,
0
],
[
1,
9
],
[
2,
2
],
[
3,
1
],
[
4,
6
],
[
5,
3
],
[
6,
7
],
[
7,
8
],
[
-1,
4
],
[
-1,
5
]
]
] | 0.06329 |
0 | 43 | 8 | [
[
[
0,
-1
],
[
1,
-1
],
[
2,
2
],
[
3,
4
],
[
4,
0
],
[
5,
-1
],
[
6,
3
],
[
7,
1
]
]
] | 0.076885 |
0 | 44 | 3 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
7
],
[
7,
8
],
[
-1,
6
]
]
] | 0.054574 |
0 | 45 | 5 | [
[
[
0,
4
],
[
1,
8
],
[
2,
2
],
[
3,
3
],
[
4,
0
],
[
5,
6
],
[
6,
1
],
[
7,
5
],
[
-1,
7
],
[
-1,
9
]
]
] | 0.035146 |
0 | 46 | 4 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
7
],
[
5,
6
],
[
6,
4
],
[
7,
8
],
[
-1,
5
]
]
] | 0.043246 |
0 | 47 | 4 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
-1
]
]
] | 0.036772 |
0 | 48 | 5 | [
[
[
0,
6
],
[
1,
7
],
[
2,
2
],
[
3,
3
],
[
4,
0
],
[
5,
8
],
[
6,
1
],
[
7,
4
],
[
-1,
5
]
]
] | 0.034214 |
0 | 49 | 4 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
]
]
] | 0.027567 |
0 | 50 | 1 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
]
]
] | 0.07737 |
0 | 51 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
]
]
] | 0.11908 |
0 | 52 | 5 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
6
],
[
5,
5
],
[
6,
8
],
[
7,
7
],
[
-1,
4
]
]
] | 0.090048 |
0 | 53 | 8 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
]
]
] | 0.064233 |
0 | 54 | 5 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
],
[
-1,
9
]
]
] | 0.057629 |
0 | 55 | 8 | [
[
[
0,
1
],
[
1,
0
],
[
2,
3
],
[
3,
2
],
[
4,
8
],
[
5,
5
],
[
6,
4
],
[
7,
6
],
[
-1,
7
],
[
-1,
9
]
]
] | 0.06892 |
0 | 56 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
],
[
-1,
9
]
]
] | 0.044291 |
0 | 57 | 5 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
],
[
-1,
9
]
]
] | 0.04349 |
0 | 58 | 4 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
]
]
] | 0.033306 |
0 | 59 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
8
],
[
4,
4
],
[
5,
3
],
[
6,
5
],
[
7,
9
],
[
-1,
6
],
[
-1,
7
]
]
] | 0.034125 |
0 | 60 | 3 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
8
],
[
6,
5
],
[
7,
6
],
[
-1,
7
]
]
] | 0.028446 |
0 | 61 | 8 | [
[
[
0,
0
],
[
1,
1
],
[
2,
7
],
[
3,
5
],
[
4,
2
],
[
5,
3
],
[
6,
9
],
[
7,
8
],
[
-1,
4
],
[
-1,
6
]
]
] | 0.025529 |
0 | 62 | 7 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
7
],
[
7,
8
],
[
-1,
9
],
[
-1,
6
]
]
] | 0.028622 |
0 | 63 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
],
[
-1,
9
]
]
] | 0.036886 |
0 | 64 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
5
],
[
4,
7
],
[
5,
8
],
[
6,
9
],
[
7,
6
],
[
-1,
4
],
[
-1,
3
]
]
] | 0.078702 |
0 | 65 | 7 | [
[
[
0,
0
],
[
1,
9
],
[
2,
4
],
[
3,
1
],
[
4,
2
],
[
5,
3
],
[
6,
6
],
[
7,
7
],
[
-1,
5
],
[
-1,
8
]
]
] | 0.072342 |
0 | 66 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
],
[
-1,
9
]
]
] | 0.065598 |
0 | 67 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
8
],
[
4,
4
],
[
5,
3
],
[
6,
7
],
[
7,
6
],
[
-1,
5
],
[
-1,
9
]
]
] | 0.049257 |
0 | 68 | 5 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
6
],
[
6,
7
],
[
7,
8
],
[
-1,
5
]
]
] | 0.062223 |
0 | 69 | 8 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
],
[
-1,
9
]
]
] | 0.038049 |
0 | 70 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
],
[
-1,
9
]
]
] | 0.034934 |
0 | 71 | 6 | [
[
[
0,
4
],
[
1,
8
],
[
2,
2
],
[
3,
9
],
[
4,
0
],
[
5,
7
],
[
6,
3
],
[
7,
1
],
[
-1,
5
],
[
-1,
6
]
]
] | 0.034579 |
0 | 72 | 6 | [
[
[
0,
1
],
[
1,
0
],
[
2,
3
],
[
3,
2
],
[
4,
8
],
[
5,
5
],
[
6,
4
],
[
7,
6
],
[
-1,
7
]
]
] | 0.034538 |
0 | 73 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
7
],
[
6,
5
],
[
7,
8
],
[
-1,
9
],
[
-1,
6
]
]
] | 0.028723 |
0 | 74 | 4 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
]
]
] | 0.025836 |
0 | 75 | 3 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
7
],
[
4,
5
],
[
5,
3
],
[
6,
6
],
[
7,
8
],
[
-1,
4
]
]
] | 0.023477 |
0 | 76 | 4 | [
[
[
0,
4
],
[
1,
8
],
[
2,
0
],
[
3,
7
],
[
4,
2
],
[
5,
5
],
[
6,
1
],
[
7,
3
],
[
-1,
6
]
]
] | 0.022784 |
0 | 77 | 6 | [
[
[
0,
7
],
[
1,
8
],
[
2,
2
],
[
3,
3
],
[
4,
0
],
[
5,
9
],
[
6,
1
],
[
7,
5
],
[
-1,
4
],
[
-1,
6
]
]
] | 0.027476 |
0 | 78 | 6 | [
[
[
0,
6
],
[
1,
0
],
[
2,
1
],
[
3,
7
],
[
4,
4
],
[
5,
8
],
[
6,
2
],
[
7,
5
],
[
-1,
3
]
]
] | 0.028345 |
0 | 79 | 7 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
8
],
[
7,
6
],
[
-1,
7
],
[
-1,
9
]
]
] | 0.034373 |
0 | 80 | 4 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
]
]
] | 0.024607 |
0 | 81 | 2 | [
[
[
0,
0
],
[
1,
3
],
[
2,
4
],
[
3,
1
],
[
4,
2
],
[
5,
6
],
[
6,
7
],
[
7,
5
]
]
] | 0.026472 |
0 | 82 | 3 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
]
]
] | 0.019315 |
0 | 83 | 9 | [
[
[
0,
0
],
[
1,
9
],
[
2,
5
],
[
3,
1
],
[
4,
2
],
[
5,
3
],
[
6,
7
],
[
7,
6
],
[
-1,
4
],
[
-1,
8
]
]
] | 0.018546 |
0 | 84 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
]
]
] | 0.023286 |
0 | 85 | 3 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
8
],
[
4,
4
],
[
5,
3
],
[
6,
5
],
[
7,
6
],
[
-1,
7
]
]
] | 0.016901 |
0 | 86 | 7 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
-1
],
[
4,
4
],
[
5,
3
],
[
6,
5
],
[
7,
-1
]
]
] | 0.027913 |
0 | 87 | 6 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
8
],
[
7,
9
],
[
-1,
7
],
[
-1,
6
]
]
] | 0.02086 |
0 | 88 | 3 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
5,
5
],
[
6,
6
],
[
7,
7
],
[
-1,
8
]
]
] | 0.01695 |
1 | 2 | 2 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
-1,
5
]
]
] | 0.024868 |
1 | 3 | 4 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
6
],
[
-1,
5
],
[
-1,
4
]
]
] | 0.037752 |
1 | 4 | 5 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
6
],
[
-1,
4
],
[
-1,
5
]
]
] | 0.048205 |
1 | 5 | 4 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
-1,
5
],
[
-1,
6
]
]
] | 0.035261 |
1 | 6 | 11 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
7
],
[
-1,
4
],
[
-1,
5
],
[
-1,
6
],
[
-1,
8
],
[
-1,
9
]
]
] | 0.096157 |
1 | 7 | 7 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
6
],
[
-1,
5
],
[
-1,
7
],
[
-1,
4
]
]
] | 0.064834 |
1 | 8 | 8 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
4
],
[
-1,
5
],
[
-1,
6
],
[
-1,
7
],
[
-1,
8
]
]
] | 0.051718 |
1 | 9 | 6 | [
[
[
0,
2
],
[
1,
1
],
[
2,
0
],
[
3,
6
],
[
4,
4
],
[
-1,
3
],
[
-1,
5
],
[
-1,
7
]
]
] | 0.078573 |
1 | 10 | 8 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
8
],
[
-1,
4
],
[
-1,
5
],
[
-1,
6
],
[
-1,
7
]
]
] | 0.066633 |
1 | 11 | 8 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
6
],
[
-1,
4
],
[
-1,
5
],
[
-1,
7
],
[
-1,
8
]
]
] | 0.057399 |
1 | 12 | 2 | [
[
[
0,
0
],
[
1,
1
],
[
2,
2
],
[
3,
3
],
[
4,
-1
]
]
] | 0.042791 |
1 | 13 | 6 | [
[
[
0,
7
],
[
1,
5
],
[
2,
6
],
[
3,
4
],
[
4,
2
],
[
-1,
0
],
[
-1,
1
],
[
-1,
3
]
]
] | 0.025253 |
GSCBench
GSCBench provides exact graph edit distance (GED) supervision for studying in-collection, cross-collection, zero-shot and few-shot graph similarity models. The GSCBench benchmark data comprise 11 collections, 5,523 graphs and 1,903,452 exact graph pairs. The repository additionally includes a version of PyG LINUX with isomorphic graphs removed (89 graphs and 3,916 pairs), used as auxiliary data for model pretraining.
Citation
If you use GSCBench in your research, please cite our paper:
Revisiting the Generalization of Neural Graph Edit Distance Models.
@article{liu2026revisiting,
title={Revisiting the Generalization of Neural Graph Edit Distance Models},
author={Liu, Zhouyang and Liu, Ning and Chen, Yixin and He, Jiezhong and Li, Dongsheng},
journal={arXiv preprint arXiv:2610.04644},
year={2026},
url={https://arxiv.org/abs/2610.04644}
}
Benchmark collections
| Collection | Graphs | Exact pairs |
|---|---|---|
| tu_AIDS | 1,488 | 1,106,325 |
| tu_BZR | 404 | 37,781 |
| tu_COX2 | 465 | 78,100 |
| tu_DHFR | 719 | 124,714 |
| tu_PTC_MR | 328 | 52,706 |
| tu_MUTAG | 175 | 15,220 |
| tu_NCI1 | 992 | 379,032 |
| tu_PROTEINS | 364 | 64,010 |
| tu_ENZYMES | 117 | 6,286 |
| tu_IMDB-BINARY | 280 | 22,703 |
| ogb_ogbg-code2 | 191 | 16,575 |
The tu_ prefix identifies TU collections, and ogb_ogbg-code2 identifies
the OGB code2 collection.
Auxiliary pretraining data
| Collection | Graphs | Pairs |
|---|---|---|
| ged_pyg_LINUX | 89 | 3,916 |
This PyG LINUX subset has isomorphic graphs removed and is provided to reproduce auxiliary model pretraining.
Files and schema
Each collection has four files:
graphs.jsonl: graph ID, node count, edge index, discrete node label IDs and thehas_node_labelsflag. Edge indices contain both directions of each undirected edge.ged_pairs.jsonl:graph_id_1,graph_id_2,ged,alignments, andexact_elapsed_seconds.data.pt: the same graph objects and ordered pair rows in a PyTorch dictionary with keysgraphs_by_gid,rows,num_node_labels, andinput_dim. Graph objects are PyTorch GeometricDataobjects.graph_id_map.csv: released graph IDs and zero-based original collection IDs.
Graph IDs are contiguous from zero within each collection. Pair endpoints refer to these released IDs. Node indices are preserved within each graph.
release_manifest.csv and release_manifest.json list collection identities
and counts.
GED and mappings
ged is the unnormalized minimum edit cost between the two released graphs.
Graphs are undirected; each undirected edge is counted once even though
edge_index stores both directions.
| Edit operation | Cost |
|---|---|
| Node insertion or deletion | 1 |
| Substitution of different discrete node labels | 1 |
| Edge insertion or deletion | 1 |
The cost model uses graph structure and discrete node labels. Deleting a node also incurs the cost of deleting its incident edges.
We retain one optimal mapping per graph pair in alignments. Each alignment
is a list of [data_node, query_node] pairs, from the data graph (graph_id_1)
to the query graph (graph_id_2); -1 denotes a deletion or insertion. For example, [2, 5] matches data node 2 to query node 5,
[3, -1] deletes data node 3, and [-1, 4] inserts query node 4.
exact_elapsed_seconds records the exact computation time in seconds.
Download and read
Install the download client in your Python environment:
pip install huggingface_hub
Download the 11 benchmark collections and auxiliary LINUX data into a relative local directory:
from huggingface_hub import snapshot_download
root = snapshot_download(
repo_id="ush3r/GSCbench",
repo_type="dataset",
local_dir="GSCbench",
)
To download and read just MUTAG (with PyTorch and PyG installed):
from huggingface_hub import snapshot_download
import torch
root = snapshot_download(
repo_id="ush3r/GSCbench",
repo_type="dataset",
local_dir="GSCbench",
allow_patterns=["tu_MUTAG/*"],
)
bundle = torch.load(root + "/tu_MUTAG/data.pt",
map_location="cpu", weights_only=False)
row = bundle["rows"][0]
data_graph = bundle["graphs_by_gid"][row["graph_id_1"]]
query_graph = bundle["graphs_by_gid"][row["graph_id_2"]]
Reading data.pt requires PyTorch and PyTorch Geometric. The files have been
checked with PyTorch 2.5.1 and PyG 2.6.1. The two JSONL files can be read with
Python's standard json module. The download includes all graphs and pair
labels needed for training.
To read the portable JSONL representation from a local download:
import json
from pathlib import Path
folder = Path("GSCbench/tu_MUTAG")
with (folder / "graphs.jsonl").open(encoding="utf-8") as handle:
graphs = {record["graph_id"]: record for record in map(json.loads, handle)}
with (folder / "ged_pairs.jsonl").open(encoding="utf-8") as handle:
row = json.loads(next(handle))
data_graph = graphs[row["graph_id_1"]]
query_graph = graphs[row["graph_id_2"]]
The benchmark's existing GSCDataset loader reads data.pt when present.
Otherwise it builds and saves that file from graphs.jsonl and
ged_pairs.jsonl. Feature encoding and splits are applied when loading.
Use with the benchmark code
After installing the GSCBench code and its dependencies using the code repository's installation instructions, load a downloaded collection with its existing loader:
from gscbench.data.gscdataset import GSCDataset
dataset = GSCDataset(
dataset_name="tu_MUTAG",
root_dir="GSCbench",
split_seed=1729,
val_ratio=0.2,
test_ratio=0.2,
node_label_encoding="fixed_one_hot",
node_label_dim=97,
)
dataset.load()
train = dataset.get_split("train")
val = dataset.get_split("val")
test = dataset.get_split("test")
pair = train.samples[0]
These values illustrate loading; use the experiment config's seed, ratios,
feature encoding and pair budget for paper experiments. Set the config's
gscbench_root_dir to the downloaded dataset directory.
Experimental splits
The release does not impose one train/validation/test partition. Benchmark configs select the graph split seed, validation/test ratios, feature encoding and training pair budget. The default benchmark graph split uses 60% training, 20% validation and 20% test graphs (with integer rounding). Training uses train-train pairs; validation uses val-train pairs; the main test view contains test-train, test-val and test-test pairs. Zero-shot evaluation does not train on the target collection. Few-shot fitting uses only the selected target training pairs.
Validation-validation pairs remain in the released data but are not used by the default validation view. A training pair budget caps the number of train-train pairs, rather than training graphs. The graph partition stays the same across pair budgets for a given split seed.
Sources
The graphs originate from the following collections:
- The ten
tu_collections come from TUDataset. The collection names in the table identify their entries in the upstream dataset list. ogb_ogbg-code2comes from OGB's ogbg-code2 collection.ged_pyg_LINUXuses graphs from the LINUX collection distributed through PyG GEDDataset.
graph_id_map.csv connects each released graph to its zero-based index in
the original source collection.
Reproducibility
For a reproducible experiment, record the Hugging Face repository commit
and pass it as revision to snapshot_download, together with the benchmark
code revision, experiment config and split seed. The paper and code should
refer to that same data revision.
- Downloads last month
- 291