Dataset Viewer
Auto-converted to Parquet Duplicate
schema
stringclasses
1 value
id
stringlengths
37
45
task
stringclasses
1 value
split
stringclasses
4 values
graph
stringlengths
16
24
question
stringlengths
141
144
anchor
dict
answer
dict
gold
dict
topoqa/1.3
base.node_degree.ba_s0_n200_seed0.q00
node_degree
dev
ba_s0_n200_seed0
In the given undirected graph, what is the degree of node 65? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 65 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 65 }
topoqa/1.3
base.node_degree.ba_s0_n200_seed0.q01
node_degree
dev
ba_s0_n200_seed0
In the given undirected graph, what is the degree of node 172? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 172 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 172 }
topoqa/1.3
base.node_degree.ba_s0_n200_seed0.q02
node_degree
dev
ba_s0_n200_seed0
In the given undirected graph, what is the degree of node 37? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 37 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 37 }
topoqa/1.3
base.node_degree.ba_s0_n200_seed0.q03
node_degree
dev
ba_s0_n200_seed0
In the given undirected graph, what is the degree of node 145? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 145 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 145 }
topoqa/1.3
base.node_degree.ba_s0_n200_seed0.q04
node_degree
dev
ba_s0_n200_seed0
In the given undirected graph, what is the degree of node 28? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 28 ] }
{ "type": "int", "value": 5 }
{ "kind": "neighbors", "of": 28 }
topoqa/1.3
base.node_degree.ba_s0_n200_seed1.q00
node_degree
test
ba_s0_n200_seed1
In the given undirected graph, what is the degree of node 116? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 116 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 116 }
topoqa/1.3
base.node_degree.ba_s0_n200_seed1.q01
node_degree
test
ba_s0_n200_seed1
In the given undirected graph, what is the degree of node 163? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 163 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 163 }
topoqa/1.3
base.node_degree.ba_s0_n200_seed1.q02
node_degree
test
ba_s0_n200_seed1
In the given undirected graph, what is the degree of node 199? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 199 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 199 }
topoqa/1.3
base.node_degree.ba_s0_n200_seed1.q03
node_degree
test
ba_s0_n200_seed1
In the given undirected graph, what is the degree of node 138? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 138 ] }
{ "type": "int", "value": 4 }
{ "kind": "neighbors", "of": 138 }
topoqa/1.3
base.node_degree.ba_s0_n200_seed1.q04
node_degree
test
ba_s0_n200_seed1
In the given undirected graph, what is the degree of node 38? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 38 ] }
{ "type": "int", "value": 5 }
{ "kind": "neighbors", "of": 38 }
topoqa/1.3
base.node_degree.ba_s0_n200_seed2.q00
node_degree
holdout
ba_s0_n200_seed2
In the given undirected graph, what is the degree of node 90? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 90 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 90 }
topoqa/1.3
base.node_degree.ba_s0_n200_seed2.q01
node_degree
holdout
ba_s0_n200_seed2
In the given undirected graph, what is the degree of node 135? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 135 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 135 }
topoqa/1.3
base.node_degree.ba_s0_n200_seed2.q02
node_degree
holdout
ba_s0_n200_seed2
In the given undirected graph, what is the degree of node 189? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 189 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 189 }
topoqa/1.3
base.node_degree.ba_s0_n200_seed2.q03
node_degree
holdout
ba_s0_n200_seed2
In the given undirected graph, what is the degree of node 107? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 107 ] }
{ "type": "int", "value": 4 }
{ "kind": "neighbors", "of": 107 }
topoqa/1.3
base.node_degree.ba_s0_n200_seed2.q04
node_degree
holdout
ba_s0_n200_seed2
In the given undirected graph, what is the degree of node 8? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 8 ] }
{ "type": "int", "value": 7 }
{ "kind": "neighbors", "of": 8 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed0.q00
node_degree
dev
ba_s0_n400_seed0
In the given undirected graph, what is the degree of node 70? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 70 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 70 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed0.q01
node_degree
dev
ba_s0_n400_seed0
In the given undirected graph, what is the degree of node 279? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 279 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 279 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed0.q02
node_degree
dev
ba_s0_n400_seed0
In the given undirected graph, what is the degree of node 393? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 393 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 393 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed0.q03
node_degree
dev
ba_s0_n400_seed0
In the given undirected graph, what is the degree of node 327? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 327 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 327 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed0.q04
node_degree
dev
ba_s0_n400_seed0
In the given undirected graph, what is the degree of node 386? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 386 ] }
{ "type": "int", "value": 4 }
{ "kind": "neighbors", "of": 386 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed1.q00
node_degree
test
ba_s0_n400_seed1
In the given undirected graph, what is the degree of node 189? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 189 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 189 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed1.q01
node_degree
test
ba_s0_n400_seed1
In the given undirected graph, what is the degree of node 313? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 313 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 313 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed1.q02
node_degree
test
ba_s0_n400_seed1
In the given undirected graph, what is the degree of node 379? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 379 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 379 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed1.q03
node_degree
test
ba_s0_n400_seed1
In the given undirected graph, what is the degree of node 13? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 13 ] }
{ "type": "int", "value": 5 }
{ "kind": "neighbors", "of": 13 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed1.q04
node_degree
test
ba_s0_n400_seed1
In the given undirected graph, what is the degree of node 84? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 84 ] }
{ "type": "int", "value": 7 }
{ "kind": "neighbors", "of": 84 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed2.q00
node_degree
holdout
ba_s0_n400_seed2
In the given undirected graph, what is the degree of node 209? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 209 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 209 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed2.q01
node_degree
holdout
ba_s0_n400_seed2
In the given undirected graph, what is the degree of node 306? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 306 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 306 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed2.q02
node_degree
holdout
ba_s0_n400_seed2
In the given undirected graph, what is the degree of node 381? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 381 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 381 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed2.q03
node_degree
holdout
ba_s0_n400_seed2
In the given undirected graph, what is the degree of node 233? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 233 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 233 }
topoqa/1.3
base.node_degree.ba_s0_n400_seed2.q04
node_degree
holdout
ba_s0_n400_seed2
In the given undirected graph, what is the degree of node 114? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 114 ] }
{ "type": "int", "value": 6 }
{ "kind": "neighbors", "of": 114 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed0.q00
node_degree
dev
ba_s0_n800_seed0
In the given undirected graph, what is the degree of node 432? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 432 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 432 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed0.q01
node_degree
dev
ba_s0_n800_seed0
In the given undirected graph, what is the degree of node 667? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 667 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 667 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed0.q02
node_degree
dev
ba_s0_n800_seed0
In the given undirected graph, what is the degree of node 300? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 300 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 300 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed0.q03
node_degree
dev
ba_s0_n800_seed0
In the given undirected graph, what is the degree of node 595? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 595 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 595 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed0.q04
node_degree
dev
ba_s0_n800_seed0
In the given undirected graph, what is the degree of node 63? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 63 ] }
{ "type": "int", "value": 7 }
{ "kind": "neighbors", "of": 63 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed1.q00
node_degree
test
ba_s0_n800_seed1
In the given undirected graph, what is the degree of node 312? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 312 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 312 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed1.q01
node_degree
test
ba_s0_n800_seed1
In the given undirected graph, what is the degree of node 715? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 715 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 715 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed1.q02
node_degree
test
ba_s0_n800_seed1
In the given undirected graph, what is the degree of node 172? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 172 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 172 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed1.q03
node_degree
test
ba_s0_n800_seed1
In the given undirected graph, what is the degree of node 672? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 672 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 672 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed1.q04
node_degree
test
ba_s0_n800_seed1
In the given undirected graph, what is the degree of node 59? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 59 ] }
{ "type": "int", "value": 6 }
{ "kind": "neighbors", "of": 59 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed2.q00
node_degree
holdout
ba_s0_n800_seed2
In the given undirected graph, what is the degree of node 497? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 497 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 497 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed2.q01
node_degree
holdout
ba_s0_n800_seed2
In the given undirected graph, what is the degree of node 591? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 591 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 591 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed2.q02
node_degree
holdout
ba_s0_n800_seed2
In the given undirected graph, what is the degree of node 777? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 777 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 777 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed2.q03
node_degree
holdout
ba_s0_n800_seed2
In the given undirected graph, what is the degree of node 490? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 490 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 490 }
topoqa/1.3
base.node_degree.ba_s0_n800_seed2.q04
node_degree
holdout
ba_s0_n800_seed2
In the given undirected graph, what is the degree of node 94? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 94 ] }
{ "type": "int", "value": 7 }
{ "kind": "neighbors", "of": 94 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed0.q00
node_degree
dev
ba_s0_n1600_seed0
In the given undirected graph, what is the degree of node 535? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 535 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 535 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed0.q01
node_degree
dev
ba_s0_n1600_seed0
In the given undirected graph, what is the degree of node 1457? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1457 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 1457 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed0.q02
node_degree
dev
ba_s0_n1600_seed0
In the given undirected graph, what is the degree of node 856? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 856 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 856 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed0.q03
node_degree
dev
ba_s0_n1600_seed0
In the given undirected graph, what is the degree of node 249? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 249 ] }
{ "type": "int", "value": 4 }
{ "kind": "neighbors", "of": 249 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed0.q04
node_degree
dev
ba_s0_n1600_seed0
In the given undirected graph, what is the degree of node 183? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 183 ] }
{ "type": "int", "value": 6 }
{ "kind": "neighbors", "of": 183 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed1.q00
node_degree
test
ba_s0_n1600_seed1
In the given undirected graph, what is the degree of node 997? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 997 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 997 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed1.q01
node_degree
test
ba_s0_n1600_seed1
In the given undirected graph, what is the degree of node 1304? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1304 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 1304 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed1.q02
node_degree
test
ba_s0_n1600_seed1
In the given undirected graph, what is the degree of node 1459? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1459 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 1459 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed1.q03
node_degree
test
ba_s0_n1600_seed1
In the given undirected graph, what is the degree of node 1191? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1191 ] }
{ "type": "int", "value": 4 }
{ "kind": "neighbors", "of": 1191 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed1.q04
node_degree
test
ba_s0_n1600_seed1
In the given undirected graph, what is the degree of node 80? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 80 ] }
{ "type": "int", "value": 8 }
{ "kind": "neighbors", "of": 80 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed2.q00
node_degree
holdout
ba_s0_n1600_seed2
In the given undirected graph, what is the degree of node 1028? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1028 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 1028 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed2.q01
node_degree
holdout
ba_s0_n1600_seed2
In the given undirected graph, what is the degree of node 1088? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1088 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 1088 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed2.q02
node_degree
holdout
ba_s0_n1600_seed2
In the given undirected graph, what is the degree of node 1578? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1578 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 1578 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed2.q03
node_degree
holdout
ba_s0_n1600_seed2
In the given undirected graph, what is the degree of node 568? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 568 ] }
{ "type": "int", "value": 4 }
{ "kind": "neighbors", "of": 568 }
topoqa/1.3
base.node_degree.ba_s0_n1600_seed2.q04
node_degree
holdout
ba_s0_n1600_seed2
In the given undirected graph, what is the degree of node 31? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 31 ] }
{ "type": "int", "value": 34 }
{ "kind": "neighbors", "of": 31 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed0.q00
node_degree
dev
ba_s0_n3200_seed0
In the given undirected graph, what is the degree of node 687? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 687 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 687 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed0.q01
node_degree
dev
ba_s0_n3200_seed0
In the given undirected graph, what is the degree of node 2222? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 2222 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 2222 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed0.q02
node_degree
dev
ba_s0_n3200_seed0
In the given undirected graph, what is the degree of node 3056? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 3056 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 3056 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed0.q03
node_degree
dev
ba_s0_n3200_seed0
In the given undirected graph, what is the degree of node 1228? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1228 ] }
{ "type": "int", "value": 4 }
{ "kind": "neighbors", "of": 1228 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed0.q04
node_degree
dev
ba_s0_n3200_seed0
In the given undirected graph, what is the degree of node 103? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 103 ] }
{ "type": "int", "value": 12 }
{ "kind": "neighbors", "of": 103 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed1.q00
node_degree
test
ba_s0_n3200_seed1
In the given undirected graph, what is the degree of node 1521? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1521 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 1521 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed1.q01
node_degree
test
ba_s0_n3200_seed1
In the given undirected graph, what is the degree of node 2664? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 2664 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 2664 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed1.q02
node_degree
test
ba_s0_n3200_seed1
In the given undirected graph, what is the degree of node 1024? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1024 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 1024 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed1.q03
node_degree
test
ba_s0_n3200_seed1
In the given undirected graph, what is the degree of node 1798? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1798 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 1798 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed1.q04
node_degree
test
ba_s0_n3200_seed1
In the given undirected graph, what is the degree of node 254? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 254 ] }
{ "type": "int", "value": 20 }
{ "kind": "neighbors", "of": 254 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed2.q00
node_degree
holdout
ba_s0_n3200_seed2
In the given undirected graph, what is the degree of node 1152? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1152 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 1152 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed2.q01
node_degree
holdout
ba_s0_n3200_seed2
In the given undirected graph, what is the degree of node 2636? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 2636 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 2636 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed2.q02
node_degree
holdout
ba_s0_n3200_seed2
In the given undirected graph, what is the degree of node 816? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 816 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 816 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed2.q03
node_degree
holdout
ba_s0_n3200_seed2
In the given undirected graph, what is the degree of node 1001? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1001 ] }
{ "type": "int", "value": 4 }
{ "kind": "neighbors", "of": 1001 }
topoqa/1.3
base.node_degree.ba_s0_n3200_seed2.q04
node_degree
holdout
ba_s0_n3200_seed2
In the given undirected graph, what is the degree of node 382? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 382 ] }
{ "type": "int", "value": 7 }
{ "kind": "neighbors", "of": 382 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed0.q00
node_degree
dev
ba_s0_n6400_seed0
In the given undirected graph, what is the degree of node 2488? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 2488 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 2488 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed0.q01
node_degree
dev
ba_s0_n6400_seed0
In the given undirected graph, what is the degree of node 4564? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 4564 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 4564 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed0.q02
node_degree
dev
ba_s0_n6400_seed0
In the given undirected graph, what is the degree of node 5737? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 5737 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 5737 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed0.q03
node_degree
dev
ba_s0_n6400_seed0
In the given undirected graph, what is the degree of node 2648? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 2648 ] }
{ "type": "int", "value": 4 }
{ "kind": "neighbors", "of": 2648 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed0.q04
node_degree
dev
ba_s0_n6400_seed0
In the given undirected graph, what is the degree of node 30? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 30 ] }
{ "type": "int", "value": 30 }
{ "kind": "neighbors", "of": 30 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed1.q00
node_degree
test
ba_s0_n6400_seed1
In the given undirected graph, what is the degree of node 3956? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 3956 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 3956 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed1.q01
node_degree
test
ba_s0_n6400_seed1
In the given undirected graph, what is the degree of node 4547? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 4547 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 4547 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed1.q02
node_degree
test
ba_s0_n6400_seed1
In the given undirected graph, what is the degree of node 1958? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1958 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 1958 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed1.q03
node_degree
test
ba_s0_n6400_seed1
In the given undirected graph, what is the degree of node 4783? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 4783 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 4783 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed1.q04
node_degree
test
ba_s0_n6400_seed1
In the given undirected graph, what is the degree of node 2107? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 2107 ] }
{ "type": "int", "value": 5 }
{ "kind": "neighbors", "of": 2107 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed2.q00
node_degree
holdout
ba_s0_n6400_seed2
In the given undirected graph, what is the degree of node 1877? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 1877 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 1877 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed2.q01
node_degree
holdout
ba_s0_n6400_seed2
In the given undirected graph, what is the degree of node 5597? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 5597 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 5597 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed2.q02
node_degree
holdout
ba_s0_n6400_seed2
In the given undirected graph, what is the degree of node 5764? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 5764 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 5764 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed2.q03
node_degree
holdout
ba_s0_n6400_seed2
In the given undirected graph, what is the degree of node 2765? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 2765 ] }
{ "type": "int", "value": 4 }
{ "kind": "neighbors", "of": 2765 }
topoqa/1.3
base.node_degree.ba_s0_n6400_seed2.q04
node_degree
holdout
ba_s0_n6400_seed2
In the given undirected graph, what is the degree of node 2072? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 2072 ] }
{ "type": "int", "value": 6 }
{ "kind": "neighbors", "of": 2072 }
topoqa/1.3
base.node_degree.ba_s1_n200_seed0.q00
node_degree
dev
ba_s1_n200_seed0
In the given undirected graph, what is the degree of node 85? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 85 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 85 }
topoqa/1.3
base.node_degree.ba_s1_n200_seed0.q01
node_degree
dev
ba_s1_n200_seed0
In the given undirected graph, what is the degree of node 149? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 149 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 149 }
topoqa/1.3
base.node_degree.ba_s1_n200_seed0.q02
node_degree
dev
ba_s1_n200_seed0
In the given undirected graph, what is the degree of node 198? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 198 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 198 }
topoqa/1.3
base.node_degree.ba_s1_n200_seed0.q03
node_degree
dev
ba_s1_n200_seed0
In the given undirected graph, what is the degree of node 45? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 45 ] }
{ "type": "int", "value": 4 }
{ "kind": "neighbors", "of": 45 }
topoqa/1.3
base.node_degree.ba_s1_n200_seed0.q04
node_degree
dev
ba_s1_n200_seed0
In the given undirected graph, what is the degree of node 26? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 26 ] }
{ "type": "int", "value": 7 }
{ "kind": "neighbors", "of": 26 }
topoqa/1.3
base.node_degree.ba_s1_n200_seed1.q00
node_degree
test
ba_s1_n200_seed1
In the given undirected graph, what is the degree of node 122? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 122 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 122 }
topoqa/1.3
base.node_degree.ba_s1_n200_seed1.q01
node_degree
test
ba_s1_n200_seed1
In the given undirected graph, what is the degree of node 133? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 133 ] }
{ "type": "int", "value": 2 }
{ "kind": "neighbors", "of": 133 }
topoqa/1.3
base.node_degree.ba_s1_n200_seed1.q02
node_degree
test
ba_s1_n200_seed1
In the given undirected graph, what is the degree of node 85? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 85 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 85 }
topoqa/1.3
base.node_degree.ba_s1_n200_seed1.q03
node_degree
test
ba_s1_n200_seed1
In the given undirected graph, what is the degree of node 187? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 187 ] }
{ "type": "int", "value": 3 }
{ "kind": "neighbors", "of": 187 }
topoqa/1.3
base.node_degree.ba_s1_n200_seed1.q04
node_degree
test
ba_s1_n200_seed1
In the given undirected graph, what is the degree of node 0? The degree is the number of edges incident to that node. Answer with an integer.
{ "type": "node", "nodes": [ 0 ] }
{ "type": "int", "value": 27 }
{ "kind": "neighbors", "of": 0 }
End of preview. Expand in Data Studio

TopoQA — topology reasoning QA over synthetic and real graphs

48,792 question–answer instances over 2,340 synthetic graphs.

Each instance pairs a graph with one question whose answer can only be obtained by reading the graph's structure, plus an exact, machine-checkable answer and a minimal witness (gold). The synthetic graphs ship with the dataset, so every answer can be recomputed from the stored topology — nothing here depends on an external knowledge base or on an LLM judge.

The 42 real-world networks are a different matter: their terms differ per source, and that side of the library is still under construction, so they are neither shipped nor indexed here. 00-graph/sources.csv says where each one comes from and what to cite, and 03-large/ ships the task specification against which they would be queried.

The dataset is organised in two tiers over the same 2,340 synthetic graphs, so that "harder" means "same topology, harder task" rather than "bigger graph":

tier graphs what it asks instances
base 2,340 synthetic local predicates: degree, adjacency, shortest-path length 35,100
mid same 2,340 synthetic whole-graph computation: modularity comparison, triangle counting, dismantling 13,692

A third tier over 42 real-world networks (03-large/) is specified but neither populated nor shipped: see §1 and §7 for why the graphs themselves are left to the user to fetch.


1. Layout

00-graph/
  README.md                     # how the library was built, family by family
  manifest.csv                  # authoritative index: 2,340 rows x 15 columns + sha256
  sources.csv                   # 42 real networks: source_url, original_type, licence note, citations
  upstream.json                 # baseline of the upstream library: hashes, counts, split
  synthetic/01-ba/01-n200/seed0/s0.npz        # 13 families x 10 structures x 6 sizes x 3 seeds
  real/                         # NOT shipped (still under construction); see sources.csv and LICENSE
01-base/01-node|02-edge|03-connection/instances.jsonl   +  manifest.json
02-mid/01-community|02-triangle|03-dismantle/instances.jsonl + README.md + manifest.json
03-large/README.md              # specification for the real-network tier (no data)
schema/instance.schema.json     # JSON Schema 2020-12, topoqa v1.3
build/                          # deterministic generators (rebuild from 00-graph/)
tests/test_contract.py          # contract checks, including recomputing gold from the graph
eval/README.md, eval/score.py   # answer format + scorer (extraction, normalisation, bootstrap)
LICENSE, LICENSE-CODE           # layered licences: QA layer CC-BY-4.0, code MIT
requirements.txt                # numpy (graphs); huggingface_hub / datasets / pandas optional
DESIGN_NOTES.md                 # why the tiers, fields and tasks look like this

Graphs are stored as edge lists (u, v arrays in .npz), not adjacency matrices, so they load without networkx and stay small — 49 MB for the 2,340 synthetic graphs that ship.

manifest.csv columns: key, source, domain, group, family, structure, structure_desc, n_target, n, m, mean_deg, seed, path, split, sha256. Its 2,340 rows are exactly the files that ship; the real side has a separate manifest.real.csv that stays local until that tier is finished.

Synthetic families: er, ba, reg, rgg, tree, grid, plo, plc, ws, sbm, caveman, composite, unseen — 10 structural settings each, 6 target sizes (200 → 6,400 nodes), 3 seeds. Real networks: collaboration, communication, P2P, social, trade, voting (34 → 11,204 nodes), 19 source networks in 4 slicing schemes.

1.1 What ships, what does not, and under which licence

material in this repo licence
01-base/, 02-mid/, manifests, 03-large/ yes CC-BY-4.0
00-graph/synthetic/ (2,340 graphs) yes inherited from huzhzh/topology_structure, which declares license: other
00-graph/real/ (42 graphs) no — side still under construction per-source; see sources.csv
build/, tests/, eval/, schema/ yes MIT

The real networks are withheld for the same reason the upstream library withholds them: their terms are per-source, not uniform. 11 come from SNAP, which asks for citation and defers redistribution to the per-dataset terms; 2 are NetworkX built-ins (BSD-3-Clause); the remaining 29 are ego-slices and largest-component variants of those same sources.

sources.csv has one row per graph object, with source_url, original_type, license_note, citation_1 and citation_2 — 42/42 rows carry both a URL and a citation. Fetch from those URLs, take the largest connected component, relabel to 0..n-1, and you recover inputs equivalent to what the generators used. The per-graph sha256 for that side is kept in manifest.real.csv, which stays with us for now, so verification of the real tier is deferred until we publish it.

The full licence text is in LICENSE; the code licence is in LICENSE-CODE.

2. Instance schema (v1.3)

{"schema":"topoqa/1.3",
 "id":"base.path_length.ba_s0_n400_seed0.q04",
 "task":"path_length","split":"dev","graph":"ba_s0_n400_seed0",
 "question":"In the given undirected graph, what is the length (in number of edges) of a shortest path between node 14 and node 51? Answer with an integer.",
 "anchor":{"type":"node_pair","nodes":[14,51]},
 "answer":{"type":"int","value":5},
 "gold":{"kind":"shortest_path","src":14,"dst":51,"len":5,"path":[14,90,3,4,63,51]}}

Nine fields. Graph attributes (n, m, family, domain, path, split) are not duplicated per row — they live in 00-graph/manifest.csv and are joined on graph:

from datasets import load_dataset
import pandas as pd

ds = load_dataset("huzhzh/graph_rag", "path_length", split="train")
man = pd.read_csv("hf://datasets/huzhzh/graph_rag/00-graph/manifest.csv").set_index("key")
df = ds.to_pandas().join(man, on="graph")

gold deliberately stores only what cannot be recomputed: hub nodes have up to 3,201 neighbours, and materialising them would inflate a single row to tens of kilobytes. Long shortest paths (>64 nodes) keep head/tail plus a truncated flag instead of the full path.

3. Tasks

task question answer type instances
node_degree degree of a given node int 11,700
edge_existence does an edge exist between u and v (3 positive / 2 two-hop non-edges per graph) bool 11,700
path_length shortest-path length between u and v int 11,700
partition_modularity of three candidate partitions, which has the highest / lowest modularity Q (A/B/C) choice 7,020
triangle_count number of triangles, whole graph or through a given node int 4,680
dismantle_order max-degree dismantling: the degree of each of the first 10 removed nodes sequence 1,992

Design notes worth knowing before you use it:

  • Answer types are mixed on purpose. 57% int, 24% bool, 14% choice, 5% sequence. Only one task is multiple-choice, because an open-ended partition is not uniquely writable and therefore not exactly scorable.
  • Guessing baselines differ per task. edge_existence is 3:2 unbalanced (always answering yes scores 60%); 21% of triangle_count answers are 0. Report F1 / balanced accuracy and non-zero-subset accuracy, not raw accuracy alone.
  • dismantle_order answers a degree sequence, not a node sequence. 81% of instances have degree ties within the first 10 removals, and the node order then depends on the tie-break rule rather than on topology: switching the tie-break changes the node sequence in 79% of cases but the degree sequence in only 2.7%. The degree sequence is what is scored.
  • No community-detection task. Planted block labels were not stored upstream, and 9 of 13 families have no unique ground-truth partition. partition_modularity replaces it with a quantity that is exactly recomputable for every family.

4. Splits

Splits are cut by seed, not by structure index, because s0…s9 is an ordered weak→strong parameter sweep in most families; cutting by index would make dev systematically easier.

split rule graphs instances
dev synthetic, seed 0 720 15,024
test synthetic, seed 1 720 15,010
holdout synthetic, seed 2 720 15,016
ood family unseen, all seeds 180 3,742

split = transfer (the 42 real networks) carries no instances and is not populated.

5. Scoring

The dataset only guarantees that the answer is unique and recomputable. Turning a model's free text into a score needs a fixed protocol — see eval/README.md and eval/score.py.

# clone so that the repo root is a directory named dataset/
git clone https://huggingface.co/datasets/huzhzh/graph_rag dataset

python -m dataset.eval.score --self-test                    # scorer self-test
python -m dataset.eval.score --dump-prompts prompts.jsonl   # prompts with the answer-format suffix
python -m dataset.eval.score --pred preds.jsonl --bootstrap 1000

Every answer must end with one line: ANSWER: <value> (int / yes|no / one of A,B,C / 10 comma-separated integers). The scorer takes the last ANSWER line, falls back to the last non-empty line (flagged fallback=True), separates invalid from empty, and reports cluster-bootstrap confidence intervals over graphs — 48,792 instances come from only 2,340 independent graphs, so row-level intervals would be roughly 3x too narrow.

6. Reproducibility

Everything is deterministic and rebuildable from 00-graph/:

python dataset/build/gen_base.py       # ~35 s, byte-identical on re-run
python dataset/build/gen_mid.py        # ~3 min
python dataset/tests/test_contract.py --recompute 300   # recomputes gold from the graphs
python dataset/build/gen_sources.py --check             # sources.csv still matches upstream

Paths assume the repo was cloned as dataset/ (see §5). Only numpy is required (requirements.txt); the generators are otherwise standard library. To rebuild 00-graph/sources.csv you also need the upstream library (P27_HF_ROOT); everything else needs only this repo.

The generators use a SHA-256-derived RNG (make_rng(key, task, 13)), so re-running produces the same sha256 for every file; manifest.json in each tier records rows / bytes / sha256.

7. Limitations

  1. Instances are not independent: each graph contributes 15 base + 6 mid questions.
  2. n is the realised node count, slightly below n_target because only the giant component is kept (min 73).
  3. Question wording is a fixed template. Measuring robustness to phrasing requires a separate variant; do not read template regularity as task simplicity.
  4. unseen is a synthetic recombination, not a genuinely external distribution.
  5. Some tasks drop instances for degeneracy — dismantle_order removes 348 graphs whose degree sequence is constant (guessable without looking at the graph), so it covers 1,992 of 2,340 graphs. Compare tasks on the intersection of graphs, not on row totals.
  6. The 42 real networks are not in this repo (§1.1) — that side is still under construction. 03-large/ is a specification, not a dataset: no instance references a real graph, and split = transfer is empty by design. If you want that tier, fetch per sources.csv and generate with your own copy.
  7. The synthetic library is redistributed as received from huzhzh/topology_structure (license: other); nothing here grants broader rights to those graphs than the upstream does.

8. Citation

@misc{topoqa2026,
  title  = {TopoQA: topology reasoning QA over synthetic and real graphs},
  author = {Hu, Zhizhang},
  year   = {2026},
  note   = {Dataset, \url{https://huggingface.co/datasets/huzhzh/graph_rag}}
}
Downloads last month
59