Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 8 new columns ({'family', 'seed', 'structure_desc', 'error', 'structure', 'status', 'key', 'n_target'}) and 9 missing columns ({'domain', 'layer', 'point_id', 'kind', 'source_url', 'name', 'group', 'source_file', 'original_type'}).

This happened while the csv dataset builder was generating data using

hf://datasets/huzhzh/topology_structure/synthetic/manifest.csv (at revision 2ecd1fd449327b28944be8349b81d46b620885ad), ['hf://datasets/huzhzh/topology_structure@2ecd1fd449327b28944be8349b81d46b620885ad/real/manifest.csv', 'hf://datasets/huzhzh/topology_structure@2ecd1fd449327b28944be8349b81d46b620885ad/synthetic/manifest.csv', 'hf://datasets/huzhzh/topology_structure@2ecd1fd449327b28944be8349b81d46b620885ad/tables/counts.csv', 'hf://datasets/huzhzh/topology_structure@2ecd1fd449327b28944be8349b81d46b620885ad/tables/real_citations.csv', 'hf://datasets/huzhzh/topology_structure@2ecd1fd449327b28944be8349b81d46b620885ad/tables/real_design.csv', 'hf://datasets/huzhzh/topology_structure@2ecd1fd449327b28944be8349b81d46b620885ad/tables/sources.csv', 'hf://datasets/huzhzh/topology_structure@2ecd1fd449327b28944be8349b81d46b620885ad/tables/synthetic_design.csv']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              key: string
              family: string
              structure: int64
              structure_desc: string
              n_target: int64
              n: int64
              m: int64
              mean_deg: double
              seed: int64
              status: string
              error: double
              path: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1605
              to
              {'group': Value('string'), 'kind': Value('string'), 'point_id': Value('string'), 'name': Value('string'), 'domain': Value('string'), 'n': Value('int64'), 'm': Value('int64'), 'mean_deg': Value('float64'), 'layer': Value('string'), 'source_file': Value('string'), 'source_url': Value('string'), 'original_type': Value('string'), 'path': Value('string')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, 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 956, 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 1702, 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 1858, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 8 new columns ({'family', 'seed', 'structure_desc', 'error', 'structure', 'status', 'key', 'n_target'}) and 9 missing columns ({'domain', 'layer', 'point_id', 'kind', 'source_url', 'name', 'group', 'source_file', 'original_type'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/huzhzh/topology_structure/synthetic/manifest.csv (at revision 2ecd1fd449327b28944be8349b81d46b620885ad), ['hf://datasets/huzhzh/topology_structure@2ecd1fd449327b28944be8349b81d46b620885ad/real/manifest.csv', 'hf://datasets/huzhzh/topology_structure@2ecd1fd449327b28944be8349b81d46b620885ad/synthetic/manifest.csv', 'hf://datasets/huzhzh/topology_structure@2ecd1fd449327b28944be8349b81d46b620885ad/tables/counts.csv', 'hf://datasets/huzhzh/topology_structure@2ecd1fd449327b28944be8349b81d46b620885ad/tables/real_citations.csv', 'hf://datasets/huzhzh/topology_structure@2ecd1fd449327b28944be8349b81d46b620885ad/tables/real_design.csv', 'hf://datasets/huzhzh/topology_structure@2ecd1fd449327b28944be8349b81d46b620885ad/tables/sources.csv', 'hf://datasets/huzhzh/topology_structure@2ecd1fd449327b28944be8349b81d46b620885ad/tables/synthetic_design.csv']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

group
string
kind
string
point_id
null
name
string
domain
string
n
int64
m
int64
mean_deg
float64
layer
string
source_file
string
source_url
string
original_type
string
path
string
01-e1-full
e1_full
null
email-Eu-core
communication
986
16,064
32.5842
A
email-Eu-core.txt.gz
https://snap.stanford.edu/data/email-Eu-core.html
directed
real/01-e1-full/01-email-Eu-core.npz
01-e1-full
e1_full
null
CollegeMsg
communication
1,893
13,835
14.617
A
CollegeMsg.txt.gz
https://snap.stanford.edu/data/soc-sign-CollegeMsg.html
directed+timestamp
real/01-e1-full/02-CollegeMsg.npz
01-e1-full
e1_full
null
soc-sign-bitcoinalpha
trade
3,775
14,120
7.4808
A
soc-sign-bitcoinalpha.csv.gz
https://snap.stanford.edu/data/soc-sign-bitcoin-alpha.html
directed+signed
real/01-e1-full/03-soc-sign-bitcoinalpha.npz
01-e1-full
e1_full
null
facebook_combined
social
4,039
88,234
43.691
A
facebook_combined.txt.gz
https://snap.stanford.edu/data/ego-Facebook.html
undirected
real/01-e1-full/04-facebook_combined.npz
01-e1-full
e1_full
null
ca-GrQc
collaboration
4,158
13,422
6.456
A
ca-GrQc.txt.gz
https://snap.stanford.edu/data/ca-GrQc.html
undirected
real/01-e1-full/05-ca-GrQc.npz
01-e1-full
e1_full
null
soc-sign-bitcoinotc
trade
5,875
21,489
7.3154
B
soc-sign-bitcoinotc.csv.gz
https://snap.stanford.edu/data/soc-sign-bitcoin-otc.html
directed+signed
real/01-e1-full/06-soc-sign-bitcoinotc.npz
01-e1-full
e1_full
null
p2p-Gnutella08
p2p
6,299
20,776
6.5966
B
p2p-Gnutella08.txt.gz
https://snap.stanford.edu/data/p2p-Gnutella08.html
directed
real/01-e1-full/07-p2p-Gnutella08.npz
01-e1-full
e1_full
null
wiki-Vote
voting
7,066
100,736
28.5129
B
wiki-Vote.txt.gz
https://snap.stanford.edu/data/wiki-Vote.html
directed
real/01-e1-full/08-wiki-Vote.npz
01-e1-full
e1_full
null
ca-HepTh
collaboration
8,638
24,806
5.7435
B
ca-HepTh.txt.gz
https://snap.stanford.edu/data/ca-HepTh.html
undirected
real/01-e1-full/09-ca-HepTh.npz
01-e1-full
e1_full
null
p2p-Gnutella04
p2p
10,876
39,994
7.3545
B
p2p-Gnutella04.txt.gz
https://snap.stanford.edu/data/p2p-Gnutella04.html
directed
real/01-e1-full/10-p2p-Gnutella04.npz
01-e1-full
e1_full
null
ca-HepPh
collaboration
11,204
117,619
20.9959
B
ca-HepPh.txt.gz
https://snap.stanford.edu/data/ca-HepPh.html
undirected
real/01-e1-full/11-ca-HepPh.npz
02-snap-ego
ego
null
ca-GrQc#1
collaboration
60
105
3.5
null
ca-GrQc.txt.gz
https://snap.stanford.edu/data/ca-GrQc.html
null
real/02-snap-ego/01-R002.npz
02-snap-ego
ego
null
ca-GrQc#2
collaboration
220
463
4.2091
null
ca-GrQc.txt.gz
https://snap.stanford.edu/data/ca-GrQc.html
null
real/02-snap-ego/02-R003.npz
02-snap-ego
ego
null
ca-GrQc#3
collaboration
203
960
9.4581
null
ca-GrQc.txt.gz
https://snap.stanford.edu/data/ca-GrQc.html
null
real/02-snap-ego/03-R004.npz
02-snap-ego
ego
null
ca-HepPh#1
collaboration
72
182
5.0556
null
ca-HepPh.txt.gz
https://snap.stanford.edu/data/ca-HepPh.html
null
real/02-snap-ego/04-R005.npz
02-snap-ego
ego
null
ca-HepPh#2
collaboration
69
152
4.4058
null
ca-HepPh.txt.gz
https://snap.stanford.edu/data/ca-HepPh.html
null
real/02-snap-ego/05-R006.npz
02-snap-ego
ego
null
ca-HepPh#3
collaboration
600
15,074
50.2467
null
ca-HepPh.txt.gz
https://snap.stanford.edu/data/ca-HepPh.html
null
real/02-snap-ego/06-R007.npz
02-snap-ego
ego
null
ca-HepTh#1
collaboration
60
124
4.1333
null
ca-HepTh.txt.gz
https://snap.stanford.edu/data/ca-HepTh.html
null
real/02-snap-ego/07-R008.npz
02-snap-ego
ego
null
ca-HepTh#2
collaboration
600
2,122
7.0733
null
ca-HepTh.txt.gz
https://snap.stanford.edu/data/ca-HepTh.html
null
real/02-snap-ego/08-R009.npz
02-snap-ego
ego
null
ca-HepTh#3
collaboration
511
1,317
5.1546
null
ca-HepTh.txt.gz
https://snap.stanford.edu/data/ca-HepTh.html
null
real/02-snap-ego/09-R010.npz
02-snap-ego
ego
null
ego-Facebook#1
social
600
4,326
14.42
null
facebook_combined.txt.gz
https://snap.stanford.edu/data/ego-Facebook.html
null
real/02-snap-ego/10-R012.npz
02-snap-ego
ego
null
ego-Facebook#2
social
600
6,798
22.66
null
facebook_combined.txt.gz
https://snap.stanford.edu/data/ego-Facebook.html
null
real/02-snap-ego/11-R013.npz
02-snap-ego
ego
null
ego-Facebook#3
social
600
9,515
31.7167
null
facebook_combined.txt.gz
https://snap.stanford.edu/data/ego-Facebook.html
null
real/02-snap-ego/12-R014.npz
02-snap-ego
ego
null
p2p-G04#1
p2p
600
965
3.2167
null
p2p-Gnutella04.txt.gz
https://snap.stanford.edu/data/p2p-Gnutella04.html
null
real/02-snap-ego/13-R015.npz
02-snap-ego
ego
null
p2p-G04#2
p2p
274
441
3.219
null
p2p-Gnutella04.txt.gz
https://snap.stanford.edu/data/p2p-Gnutella04.html
null
real/02-snap-ego/14-R016.npz
02-snap-ego
ego
null
p2p-G04#3
p2p
600
1,021
3.4033
null
p2p-Gnutella04.txt.gz
https://snap.stanford.edu/data/p2p-Gnutella04.html
null
real/02-snap-ego/15-R017.npz
02-snap-ego
ego
null
p2p-G08#1
p2p
600
3,417
11.39
null
p2p-Gnutella08.txt.gz
https://snap.stanford.edu/data/p2p-Gnutella08.html
null
real/02-snap-ego/16-R018.npz
02-snap-ego
ego
null
p2p-G08#2
p2p
600
1,601
5.3367
null
p2p-Gnutella08.txt.gz
https://snap.stanford.edu/data/p2p-Gnutella08.html
null
real/02-snap-ego/17-R019.npz
02-snap-ego
ego
null
p2p-G08#3
p2p
600
1,270
4.2333
null
p2p-Gnutella08.txt.gz
https://snap.stanford.edu/data/p2p-Gnutella08.html
null
real/02-snap-ego/18-R020.npz
02-snap-ego
ego
null
btc-alpha#1
trade
600
2,544
8.48
null
soc-sign-bitcoinalpha.csv.gz
https://snap.stanford.edu/data/soc-sign-bitcoin-alpha.html
null
real/02-snap-ego/19-R021.npz
02-snap-ego
ego
null
btc-alpha#2
trade
600
3,579
11.93
null
soc-sign-bitcoinalpha.csv.gz
https://snap.stanford.edu/data/soc-sign-bitcoin-alpha.html
null
real/02-snap-ego/20-R022.npz
02-snap-ego
ego
null
btc-alpha#3
trade
600
2,470
8.2333
null
soc-sign-bitcoinalpha.csv.gz
https://snap.stanford.edu/data/soc-sign-bitcoin-alpha.html
null
real/02-snap-ego/21-R023.npz
02-snap-ego
ego
null
btc-otc#1
trade
600
4,310
14.3667
null
soc-sign-bitcoinotc.csv.gz
https://snap.stanford.edu/data/soc-sign-bitcoin-otc.html
null
real/02-snap-ego/22-R024.npz
02-snap-ego
ego
null
btc-otc#2
trade
224
1,331
11.8839
null
soc-sign-bitcoinotc.csv.gz
https://snap.stanford.edu/data/soc-sign-bitcoin-otc.html
null
real/02-snap-ego/23-R025.npz
02-snap-ego
ego
null
btc-otc#3
trade
600
1,393
4.6433
null
soc-sign-bitcoinotc.csv.gz
https://snap.stanford.edu/data/soc-sign-bitcoin-otc.html
null
real/02-snap-ego/24-R026.npz
02-snap-ego
ego
null
wiki-Vote#1
voting
600
9,562
31.8733
null
wiki-Vote.txt.gz
https://snap.stanford.edu/data/wiki-Vote.html
null
real/02-snap-ego/25-R027.npz
02-snap-ego
ego
null
wiki-Vote#2
voting
600
14,306
47.6867
null
wiki-Vote.txt.gz
https://snap.stanford.edu/data/wiki-Vote.html
null
real/02-snap-ego/26-R028.npz
02-snap-ego
ego
null
wiki-Vote#3
voting
600
14,270
47.5667
null
wiki-Vote.txt.gz
https://snap.stanford.edu/data/wiki-Vote.html
null
real/02-snap-ego/27-R029.npz
03-snap-full
full
null
email-Eu
communication
986
16,064
32.5842
null
email-Eu-core.txt.gz
https://snap.stanford.edu/data/email-Eu-core.html
null
real/03-snap-full/01-email-Eu.npz
03-snap-full
full
null
CollegeMsg
communication
1,893
13,835
14.617
null
CollegeMsg.txt.gz
https://snap.stanford.edu/data/soc-sign-CollegeMsg.html
null
real/03-snap-full/02-CollegeMsg.npz
04-builtin
builtin
null
karate
social
34
78
4.5882
null
networkx
null
null
real/04-builtin/01-karate.npz
04-builtin
builtin
null
lesmis
social
77
254
6.5974
null
networkx
null
null
real/04-builtin/02-lesmis.npz
null
null
null
null
null
200
396
3.96
null
null
null
null
synthetic/graphs/01-ba/01-n200/seed0/s0.npz
null
null
null
null
null
200
396
3.96
null
null
null
null
synthetic/graphs/01-ba/01-n200/seed1/s0.npz
null
null
null
null
null
200
396
3.96
null
null
null
null
synthetic/graphs/01-ba/01-n200/seed2/s0.npz
null
null
null
null
null
400
796
3.98
null
null
null
null
synthetic/graphs/01-ba/02-n400/seed0/s0.npz
null
null
null
null
null
400
796
3.98
null
null
null
null
synthetic/graphs/01-ba/02-n400/seed1/s0.npz
null
null
null
null
null
400
796
3.98
null
null
null
null
synthetic/graphs/01-ba/02-n400/seed2/s0.npz
null
null
null
null
null
800
1,596
3.99
null
null
null
null
synthetic/graphs/01-ba/03-n800/seed0/s0.npz
null
null
null
null
null
800
1,596
3.99
null
null
null
null
synthetic/graphs/01-ba/03-n800/seed1/s0.npz
null
null
null
null
null
800
1,596
3.99
null
null
null
null
synthetic/graphs/01-ba/03-n800/seed2/s0.npz
null
null
null
null
null
1,600
3,196
3.995
null
null
null
null
synthetic/graphs/01-ba/04-n1600/seed0/s0.npz
null
null
null
null
null
1,600
3,196
3.995
null
null
null
null
synthetic/graphs/01-ba/04-n1600/seed1/s0.npz
null
null
null
null
null
1,600
3,196
3.995
null
null
null
null
synthetic/graphs/01-ba/04-n1600/seed2/s0.npz
null
null
null
null
null
3,200
6,396
3.9975
null
null
null
null
synthetic/graphs/01-ba/05-n3200/seed0/s0.npz
null
null
null
null
null
3,200
6,396
3.9975
null
null
null
null
synthetic/graphs/01-ba/05-n3200/seed1/s0.npz
null
null
null
null
null
3,200
6,396
3.9975
null
null
null
null
synthetic/graphs/01-ba/05-n3200/seed2/s0.npz
null
null
null
null
null
6,400
12,796
3.9987
null
null
null
null
synthetic/graphs/01-ba/06-n6400/seed0/s0.npz
null
null
null
null
null
6,400
12,796
3.9987
null
null
null
null
synthetic/graphs/01-ba/06-n6400/seed1/s0.npz
null
null
null
null
null
6,400
12,796
3.9987
null
null
null
null
synthetic/graphs/01-ba/06-n6400/seed2/s0.npz
null
null
null
null
null
200
396
3.96
null
null
null
null
synthetic/graphs/01-ba/01-n200/seed0/s1.npz
null
null
null
null
null
200
396
3.96
null
null
null
null
synthetic/graphs/01-ba/01-n200/seed1/s1.npz
null
null
null
null
null
200
396
3.96
null
null
null
null
synthetic/graphs/01-ba/01-n200/seed2/s1.npz
null
null
null
null
null
400
796
3.98
null
null
null
null
synthetic/graphs/01-ba/02-n400/seed0/s1.npz
null
null
null
null
null
400
796
3.98
null
null
null
null
synthetic/graphs/01-ba/02-n400/seed1/s1.npz
null
null
null
null
null
400
796
3.98
null
null
null
null
synthetic/graphs/01-ba/02-n400/seed2/s1.npz
null
null
null
null
null
800
1,596
3.99
null
null
null
null
synthetic/graphs/01-ba/03-n800/seed0/s1.npz
null
null
null
null
null
800
1,596
3.99
null
null
null
null
synthetic/graphs/01-ba/03-n800/seed1/s1.npz
null
null
null
null
null
800
1,596
3.99
null
null
null
null
synthetic/graphs/01-ba/03-n800/seed2/s1.npz
null
null
null
null
null
1,600
3,196
3.995
null
null
null
null
synthetic/graphs/01-ba/04-n1600/seed0/s1.npz
null
null
null
null
null
1,600
3,196
3.995
null
null
null
null
synthetic/graphs/01-ba/04-n1600/seed1/s1.npz
null
null
null
null
null
1,600
3,196
3.995
null
null
null
null
synthetic/graphs/01-ba/04-n1600/seed2/s1.npz
null
null
null
null
null
3,200
6,396
3.9975
null
null
null
null
synthetic/graphs/01-ba/05-n3200/seed0/s1.npz
null
null
null
null
null
3,200
6,396
3.9975
null
null
null
null
synthetic/graphs/01-ba/05-n3200/seed1/s1.npz
null
null
null
null
null
3,200
6,396
3.9975
null
null
null
null
synthetic/graphs/01-ba/05-n3200/seed2/s1.npz
null
null
null
null
null
6,400
12,796
3.9987
null
null
null
null
synthetic/graphs/01-ba/06-n6400/seed0/s1.npz
null
null
null
null
null
6,400
12,796
3.9987
null
null
null
null
synthetic/graphs/01-ba/06-n6400/seed1/s1.npz
null
null
null
null
null
6,400
12,796
3.9987
null
null
null
null
synthetic/graphs/01-ba/06-n6400/seed2/s1.npz
null
null
null
null
null
200
591
5.91
null
null
null
null
synthetic/graphs/01-ba/01-n200/seed0/s2.npz
null
null
null
null
null
200
591
5.91
null
null
null
null
synthetic/graphs/01-ba/01-n200/seed1/s2.npz
null
null
null
null
null
200
591
5.91
null
null
null
null
synthetic/graphs/01-ba/01-n200/seed2/s2.npz
null
null
null
null
null
400
1,191
5.955
null
null
null
null
synthetic/graphs/01-ba/02-n400/seed0/s2.npz
null
null
null
null
null
400
1,191
5.955
null
null
null
null
synthetic/graphs/01-ba/02-n400/seed1/s2.npz
null
null
null
null
null
400
1,191
5.955
null
null
null
null
synthetic/graphs/01-ba/02-n400/seed2/s2.npz
null
null
null
null
null
800
2,391
5.9775
null
null
null
null
synthetic/graphs/01-ba/03-n800/seed0/s2.npz
null
null
null
null
null
800
2,391
5.9775
null
null
null
null
synthetic/graphs/01-ba/03-n800/seed1/s2.npz
null
null
null
null
null
800
2,391
5.9775
null
null
null
null
synthetic/graphs/01-ba/03-n800/seed2/s2.npz
null
null
null
null
null
1,600
4,791
5.9887
null
null
null
null
synthetic/graphs/01-ba/04-n1600/seed0/s2.npz
null
null
null
null
null
1,600
4,791
5.9887
null
null
null
null
synthetic/graphs/01-ba/04-n1600/seed1/s2.npz
null
null
null
null
null
1,600
4,791
5.9887
null
null
null
null
synthetic/graphs/01-ba/04-n1600/seed2/s2.npz
null
null
null
null
null
3,200
9,591
5.9944
null
null
null
null
synthetic/graphs/01-ba/05-n3200/seed0/s2.npz
null
null
null
null
null
3,200
9,591
5.9944
null
null
null
null
synthetic/graphs/01-ba/05-n3200/seed1/s2.npz
null
null
null
null
null
3,200
9,591
5.9944
null
null
null
null
synthetic/graphs/01-ba/05-n3200/seed2/s2.npz
null
null
null
null
null
6,400
19,191
5.9972
null
null
null
null
synthetic/graphs/01-ba/06-n6400/seed0/s2.npz
null
null
null
null
null
6,400
19,191
5.9972
null
null
null
null
synthetic/graphs/01-ba/06-n6400/seed1/s2.npz
null
null
null
null
null
6,400
19,191
5.9972
null
null
null
null
synthetic/graphs/01-ba/06-n6400/seed2/s2.npz
null
null
null
null
null
200
591
5.91
null
null
null
null
synthetic/graphs/01-ba/01-n200/seed0/s3.npz
null
null
null
null
null
200
591
5.91
null
null
null
null
synthetic/graphs/01-ba/01-n200/seed1/s3.npz
null
null
null
null
null
200
591
5.91
null
null
null
null
synthetic/graphs/01-ba/01-n200/seed2/s3.npz
null
null
null
null
null
400
1,191
5.955
null
null
null
null
synthetic/graphs/01-ba/02-n400/seed0/s3.npz
End of preview.

P27 拓扑拆解基准(P27 topological dismantling benchmark)

面向网络拆解(node-removal dismantling / percolation)的受控图基准: 13 个合成族 × 6 个规模 × 10 个结构 × 3 seeds = 2340 张合成图, 外加真实网络 42 个图对象(11 个 SNAP 整网 + 31 个库点)。

发布状态:当前 HuggingFace 仓库只包含合成部分(synthetic/)。 真实网络的派生图(real/)在引用核对完成后单独上传,见 §2.1。

  • 每张图都是无向简单图,只保留最大连通片,节点重标为 0..n-1,边表存 npz(u, v: int32)。
  • 合成侧每个 (族, 结构, 规模) 组合有 seed 0/1/2 三张图,可直接估 seed 方差。
  • 真实侧同时给「整网巨片」和「ego 切片」两种切法,同一批 11 个 SNAP 源网络。

1. 设计表(合成 13 族 × 10 结构)

# 族 结构(10 个,含参数) 规模 seed 张数 生成规则
1 ba s0–s9:d = 4 / 5 / 6 / 7 / 8 / 9 / 10 / 12 / 14 / 16 200/400/800/1600/3200/6400 0/1/2 10×6×3 = 180 优先连接,m = d/2
2 er s0–s9:d = 4 / 5 / 6 / 7 / 8 / 9 / 10 / 12 / 14 / 16 同上 0/1/2 180 G(n,p),p = d/(n−1)
3 reg s0–s9:d = 4 / 5 / 6 / 7 / 8 / 9 / 10 / 12 / 14 / 16 同上 0/1/2 180 随机正则(n·d 奇数时 d+1)
4 rgg s0–s9:d = 6 / 7 / 8 / 9 / 10 / 11 / 12 / 14 / 16 / 20 同上 0/1/2 180 几何图,r = √(d/πn)
5 plo s0–s4:γ=2.2 × d=4/6/8/10/12;s5–s9:γ=2.8 × d=4/6/8/10/12 同上 0/1/2 180 Chung–Lu 幂律度序
6 plc s0–s4:p=0.30 × d=4/6/8/10/12;s5–s9:p=0.80 × d=4/6/8/10/12 同上 0/1/2 180 Holme–Kim 可调聚类
7 ws s0–s4:p=0.05 × d=4/6/8/10/12;s5–s9:p=0.50 × d=4/6/8/10/12 同上 0/1/2 180 Watts–Strogatz 重连
8 sbm s0–s4:μ=0.05 × d=4/6/8/10/12;s5–s9:μ=0.30 × d=4/6/8/10/12 同上 0/1/2 180 8 块随机块模型
9 tree s0–s9:labeled / recursive / BA(m=1) / BST / subcubic / caterpillar / broom / double_star / binary_heap / cycle_spanning 同上 0/1/2 180 10 种树模型,transitivity ≡ 0
10 grid s0–s9:长程边比例 = 0/.01/.02/.05/.10/.15/.20/.30/.40/.50 同上 0/1/2 180 2D 格(side=round√n)+ 随机长程边
11 caveman s0–s9:团大小 k = 4/5/6/7/8/10/12/15/20/25 同上 0/1/2 180 团内全连 + 每团 3 条团间边
12 composite s0–s9:geo_tree / core_periph / lattice_sf / sbm_chain / hier / bimodal / ring_lattice / two_star / core_shell / chain_lattice 同上 0/1/2 180 多块拼接(见 §3)
13 unseen s0–s9:tree_grid / sf_ring / caveman_lattice / sbm_hetero / multiscale_up / geo_core_sf_shell / disassortative / chain_cliques / barbell / grid_ba 同上 0/1/2 180 多块拼接(见 §3)

数量关系

2340 = 13 族 × 10 结构 × 6 规模 × 3 seed
 180 = 10 × 6 × 3(每族)
  30 = 10 × 3(每族每规模)
   3 = seed 0/1/2(每结构每规模)

1.1 编号规则

层级 编号
族(13) 01-ba 02-er 03-reg 04-rgg 05-plo 06-plc 07-ws 08-sbm 09-tree 10-grid 11-caveman 12-composite 13-unseen
规模(6) 01-n200 02-n400 03-n800 04-n1600 05-n3200 06-n6400
真实组(4) 01-e1-full(11)、02-snap-ego(27)、03-snap-full(2)、04-builtin(2)

2. 真实网络(42 个图对象,13 个源网络)

组 内容 规模 seed 张数 说明
real/01-e1-full 11 个 SNAP 整网巨片 n = 986 / 1893 / 3775 / 4039 / 4158 / 5875 / 6299 / 7066 / 8638 / 10876 / 11204 无 11 最大连通片 + 重标号;不切片
real/02-snap-ego 27 个 ego 切片 n = 60–600 无 27 3 跳 BFS 球(目标 600 点)的诱导子图
real/03-snap-full 2 个库内整网 n = 986(email-Eu)、1893(CollegeMsg) 无 2 取巨片;与 01 组同源、不同用途
real/04-builtin 2 个内置小图 n = 34(karate)、77(lesmis) 无 2 NetworkX 内置整图
  • 11 个源网络:email-Eu-core、CollegeMsg、ca-GrQc、ca-HepTh、ca-HepPh、facebook_combined、 p2p-Gnutella04、p2p-Gnutella08、soc-sign-bitcoinalpha、soc-sign-bitcoinotc、wiki-Vote。
  • E1 的 11 个整网与库里的 29 个 SNAP 点同源、不同切法,不是独立网络。

2.1 真实网络引用(按 SNAP 要求)

数据集 页面 引用(发表时请照此引用) 原始类型
email-Eu-core SNAP H. Yin, A. R. Benson, J. Leskovec, D. F. Gleich. Local Higher-order Graph Clustering. KDD 2017.
J. Leskovec, J. Kleinberg, C. Faloutsos. Graph Evolution: Densification and Shrinking Diameters. ACM TKDD 1(1), 2007.
directed
CollegeMsg SNAP P. Panzarasa, T. Opsahl, K. M. Carley. Patterns and dynamics of users' behavior and interaction: Network analysis of an online community. JASIST 60(5):911-932, 2009. directed+timestamp
ca-GrQc SNAP J. Leskovec, J. Kleinberg, C. Faloutsos. Graph Evolution: Densification and Shrinking Diameters. ACM TKDD 1(1), 2007. undirected
ca-HepTh SNAP J. Leskovec, J. Kleinberg, C. Faloutsos. Graph Evolution: Densification and Shrinking Diameters. ACM TKDD 1(1), 2007. undirected
ca-HepPh SNAP J. Leskovec, J. Kleinberg, C. Faloutsos. Graph Evolution: Densification and Shrinking Diameters. ACM TKDD 1(1), 2007. undirected
facebook_combined SNAP J. McAuley, J. Leskovec. Learning to Discover Social Circles in Ego Networks. NIPS 2012. undirected
p2p-Gnutella04 SNAP J. Leskovec, J. Kleinberg, C. Faloutsos. Graph Evolution: Densification and Shrinking Diameters. ACM TKDD 1(1), 2007.
M. Ripeanu, I. Foster, A. Iamnitchi. Mapping the Gnutella Network: Properties of Large-Scale Peer-to-Peer Systems and Implications for System Design. IEEE Internet Computing 6(1), 2002.
directed
p2p-Gnutella08 SNAP J. Leskovec, J. Kleinberg, C. Faloutsos. Graph Evolution: Densification and Shrinking Diameters. ACM TKDD 1(1), 2007.
M. Ripeanu, I. Foster, A. Iamnitchi. Mapping the Gnutella Network: Properties of Large-Scale Peer-to-Peer Systems and Implications for System Design. IEEE Internet Computing 6(1), 2002.
directed
soc-sign-bitcoinalpha SNAP S. Kumar, F. Spezzano, V. S. Subrahmanian, C. Faloutsos. Edge Weight Prediction in Weighted Signed Networks. ICDM 2016.
S. Kumar, B. Hooi, D. Makhija, M. Kumar, V. S. Subrahmanian, C. Faloutsos. REV2: Fraudulent User Prediction in Rating Platforms. WSDM 2018.
directed+signed
soc-sign-bitcoinotc SNAP S. Kumar, F. Spezzano, V. S. Subrahmanian, C. Faloutsos. Edge Weight Prediction in Weighted Signed Networks. ICDM 2016.
S. Kumar, B. Hooi, D. Makhija, M. Kumar, V. S. Subrahmanian, C. Faloutsos. REV2: Fraudulent User Prediction in Rating Platforms. WSDM 2018.
directed+signed
wiki-Vote SNAP J. Leskovec, D. Huttenlocher, J. Kleinberg. Signed Networks in Social Media. CHI 2010.
J. Leskovec, D. Huttenlocher, J. Kleinberg. Predicting Positive and Negative Links in Online Social Networks. WWW 2010.
directed
karate (builtin) SNAP W. W. Zachary. An Information Flow Model for Conflict and Fission in Small Groups. Journal of Anthropological Research 33(4):452-473, 1977. undirected
lesmis (builtin) SNAP D. E. Knuth. The Stanford GraphBase: A Platform for Combinatorial Computing. Addison-Wesley, 1993. undirected
  • 完整 BibTeX/备注见 tables/real_citations.csv;原始边表出处见 tables/sources.csv。
  • karate / lesmis 为 NetworkX 内置图,分别引用 Zachary 1977 与 Knuth 1993。

3. composite / unseen 的子型构造

子型(composite) 构造 子型(unseen) 构造
hyb_geo_tree 60% RGG(d=8) + 40% BA(m=3),3 桥 hx_tree_grid 50% 随机树 + 50% 2D 格,3 桥
hyb_core_periph 30% ER(d=12) 核 + 70% BA(m=2),4 桥 hx_sf_ring 65% BA(m=3) + 35% 环,4 桥
hyb_lattice_sf 50% 2D 格(5% 长程)+ 50% BA(m=2),2 桥 hx_caveman_lattice 8-团串 + 2D 格,4 桥
hyb_sbm_chain 6 个 SBM 块(p_in=.10, p_out=.01)+ 链段 hx_sbm_hetero 4 个 SBM 块(50/25/15/10%),p_in=.10/.14/.20/.28
hyb_hier 2×3×2 层级块,p_in=.30/.22/.14 hx_multiscale_up 2×3×2 层级块,越深越密 p_in=.06/.16/.26
hyb_bimodal 50% 环 + 50% BA(m=4),3 桥 hx_geo_core_sf_shell 40% RGG(d=8) + 35% BA(m=2) + 25% 格
hyb_ring_lattice 4 个格块围成环,相邻 1 桥 hx_disassortative 二分式两半,边几乎全跨组(p_cross=6/n₂)
hyb_two_star 两个 BA(m=2) 半区,hub 间 3 边 hx_chain_cliques 8-团串 + 尾路径,尾接首团
hyb_core_shell 30% ER(d=12) 核 + 70% 格,4 桥 hx_barbell 两稠密半区(每点连后续 5 点)由路径连接
hyb_chain_lattice 4 个格块串链,相邻 2 桥 hx_grid_ba 60% 2D 格 + 40% BA(m=2),3 桥

4. 目录结构

.
├── README.md
├── synthetic/
│   ├── graphs/
│   │   └── <01-13>-<family>/<01-06>-n<scale>/seed<0-2>/s<0-9>.npz   2340
│   └── manifest.csv
├── real/
│   ├── 01-e1-full/<01-11>-<name>.npz        11
│   ├── 02-snap-ego/<01-27>-Rxxx.npz         27
│   ├── 03-snap-full/<01-02>-<name>.npz       2
│   ├── 04-builtin/<01-02>-<name>.npz         2
│   └── manifest.csv
├── tables/
│   ├── synthetic_design.csv   130 行(13 族 × 10 结构)
│   ├── real_design.csv        42 行(01-e1-full / 02-snap-ego / 03-snap-full / 04-builtin)
│   ├── real_citations.csv     13 行(11 SNAP + 2 内置的引用)
│   ├── counts.csv             汇总
│   └── sources.csv            11 个 SNAP 出处与许可提示
└── examples/load.py
  • synthetic/manifest.csv:key / family / structure / structure_desc / n_target / n / m / mean_deg / seed / status / path。
  • real/manifest.csv:kind / name / domain / n / m / mean_deg / layer / source_file / source_url / original_type / path。

5. 读取示例

import numpy as np, pandas as pd

man = pd.read_csv("synthetic/manifest.csv")
row = man.query("family=='ws' and structure==1 and n_target==800 and seed==0").iloc[0]
z = np.load(row["path"])   # synthetic/graphs/<01-13>-<family>/<01-06>-n<scale>/seed<k>/s<structure>.npz
u, v = z["u"], z["v"]          # int32,0..n-1
n = int(max(u.max(), v.max()) + 1)

real = pd.read_csv("real/manifest.csv")
z = np.load("real/01-e1-full/04-facebook_combined.npz")

见 examples/load.py。

6. 已知口径(使用前必读)

  1. **n ≠ n_target**:grid(side²)、SBM/RGG(取巨片)、caveman(l·k)会偏小; 按规模对齐时用 n,不要用 n_target。
  2. composite / unseen 在大 n 下密度不归一:它们沿用固定块内概率, 6400 档 hx_sbm_hetero 平均度约 313、hyb_hier 约 138;这两组不是度受控族, 大 n 跨族比较建议先做密度归一,或只在族内比较。
  3. 种子口径:seed 是图生成随机种子(0/1/2),不是算法随机种子; 真实侧没有 seed(确定性导出)。
  4. 真实网原始文件有向/带权(CollegeMsg、soc-sign-、wiki-Vote、p2p-Gnutella、email-Eu), 这里统一按无向简单图、丢权重处理;要研究有向加权,请按 tables/sources.csv 的链接 自行下载 SNAP 原始文件。

7. 来源与许可

  • 合成图:由本仓库生成器(mvp/gen_balanced.py)按固定参数产生,可自由用于研究; 建议引用见下。
  • 真实图:来自 SNAP 的 11 个公开数据集, 逐条出处与引用见 tables/real_citations.csv。当前版本暂未包含 real/ 的派生图 (引用核对后上传);也不含 SNAP 原始边表,原始文件请按表格里的链接自行下载, 并按 SNAP 要求引用对应论文。
  • 三个内置小图(karate、lesmis)来自 NetworkX 内置数据集。

8. 引用

若使用本基准,请引用 P27 项目(论文题名待定)以及所用到 SNAP 数据集的原始文献。 tables/sources.csv 有每个 SNAP 数据集的页面链接,按 SNAP 要求引用原始论文。

Downloads last month
88