Dataset Viewer
prompts
stringlengths 279
11.1k
| answers
stringlengths 1
254
| tasks
stringclasses 47
values |
---|---|---|
The task is to determine the average degree of the neighbors of a node in the graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, and 9. The graph contains edges: (1, 7), (4, 7), (2, 4), (2, 3), (2, 5), (6, 8), (8, 9).
Question: What is the average neighbor degree of node 5 in the graph?
You need to format your answer as a float number. | 3.0 | graph_avg_neighbor_degree |
The task is to determine the resource allocation index of two nodes in a graph.
The resource allocation index of two nodes is the sum of the inverse of the degrees of the common neighbors of the two nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, and 18. The graph contains edges: (1, 15), (11, 15), (12, 15), (2, 14), (3, 14), (5, 14), (14, 17), (4, 5), (5, 10), (10, 18), (10, 16), (10, 12), (6, 7), (7, 8), (9, 18), (13, 18), (16, 18), (11, 13).
Question: What is the resource allocation index between node 9 and node 10?
You need to format your answer as a float number. | 0.25 | graph_resource_allocation_index |
The task is to determine the minimum vertex cover of a graph.
A vertex cover is a set of nodes such that every edge in the graph is incident to at least one node in the set.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, and 8. The graph contains edges: (1, 2), (1, 4), (2, 6), (3, 4), (4, 5), (6, 8), (3, 7), (5, 7).
Question: What is the minimum vertex cover of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [1,2,3,4,5,6] | graph_min_vertex_cover |
The task is to determine the betweenness centrality of a node in the graph.
Betweenness centrality of a node u is the sum of the fraction of all-pairs shortest paths that pass through u.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, and 17. The graph contains edges: (1, 5), (1, 12), (5, 13), (12, 16), (2, 4), (3, 4), (3, 8), (6, 14), (6, 15), (7, 14), (9, 14), (11, 14), (9, 15), (7, 10), (7, 9), (7, 17), (10, 11), (16, 17).
Question: What is the betweenness centrality of node 5 in the graph?
You need to format your answer as a float number. | 0.09166666666666666 | graph_betweenness_centrality |
The task is to determine the betweenness centrality of a node in the graph.
Betweenness centrality of a node u is the sum of the fraction of all-pairs shortest paths that pass through u.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, and 30. The graph contains edges: (1, 25), (1, 2), (18, 25), (3, 4), (3, 5), (4, 5), (4, 7), (4, 8), (5, 7), (5, 8), (6, 7), (7, 8), (6, 8), (9, 10), (9, 11), (9, 13), (10, 11), (10, 12), (13, 14), (13, 15), (13, 16), (14, 26), (14, 27), (14, 15), (15, 24), (15, 26), (15, 16), (16, 24), (26, 27), (17, 23), (17, 18), (18, 23), (19, 20), (19, 21), (20, 21), (21, 22), (22, 30), (28, 30), (29, 30), (28, 29).
Question: What is the betweenness centrality of node 28 in the graph?
You need to format your answer as a float number. | 0.0 | graph_betweenness_centrality |
The task is to determine the depth-first search (DFS) traversal order given a starting node.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, and 20. The graph contains edges: (1, 11), (1, 5), (2, 11), (5, 11), (9, 11), (10, 11), (11, 20), (11, 17), (5, 9), (2, 18), (2, 9), (2, 19), (2, 12), (2, 16), (3, 18), (4, 18), (16, 18), (18, 19), (9, 20), (9, 10), (9, 15), (9, 16), (7, 19), (14, 19), (3, 12), (7, 12), (10, 16), (15, 16), (16, 20), (3, 8), (3, 7), (3, 4), (4, 8), (7, 20), (4, 14), (6, 17), (17, 20), (15, 20), (10, 13), (13, 15).
Question: What is the depth-first search (DFS) traversal order for the starting node 17?
You need to format your answer as a list of edges in ascending dictionary order, e.g., [(u1, v1), (u2, v2), ..., (un, vn)]. | [(17,6),(17,11),(11,1),(1,5),(5,9),(9,2),(2,18),(18,3),(3,8),(8,4),(4,14),(14,19),(19,7),(7,20),(20,15),(15,13),(13,10),(10,16),(7,12)] | graph_dfs |
The task is to determine the minimum vertex cover of a graph.
A vertex cover is a set of nodes such that every edge in the graph is incident to at least one node in the set.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, and 30. The graph contains edges: (1, 2), (1, 4), (1, 9), (1, 13), (1, 12), (1, 19), (1, 3), (1, 5), (1, 17), (1, 18), (1, 22), (1, 7), (1, 8), (3, 4), (4, 5), (4, 6), (4, 7), (4, 8), (3, 13), (5, 13), (7, 13), (8, 13), (12, 13), (13, 14), (13, 15), (13, 16), (13, 17), (13, 18), (5, 12), (7, 12), (8, 12), (12, 19), (12, 16), (12, 18), (12, 20), (12, 21), (12, 22), (12, 23), (5, 19), (7, 19), (8, 19), (16, 19), (19, 20), (19, 21), (19, 22), (19, 23), (3, 15), (3, 25), (3, 5), (3, 17), (3, 18), (3, 6), (3, 7), (3, 8), (5, 15), (5, 26), (5, 16), (5, 24), (5, 17), (5, 18), (5, 22), (5, 6), (5, 27), (5, 7), (5, 8), (7, 17), (8, 17), (14, 17), (15, 17), (16, 17), (17, 18), (7, 18), (8, 18), (15, 18), (7, 22), (8, 22), (6, 7), (7, 15), (7, 16), (7, 20), (7, 29), (7, 21), (7, 23), (7, 8), (7, 30), (6, 8), (8, 15), (8, 16), (8, 24), (8, 27), (8, 30), (15, 24), (24, 26), (26, 27), (16, 28), (20, 23), (10, 11).
Question: What is the minimum vertex cover of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [1,3,4,5,6,7,8,10,12,13,14,15,16,17,19,20,24,26] | graph_min_vertex_cover |
The task is to determine common neighbors between two nodes in the graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, and 8. The graph contains edges: (1, 2), (1, 3), (1, 5), (1, 6), (2, 3), (3, 5), (5, 6), (5, 7), (4, 8), (7, 8).
Question: What are the common neighbors between node 1 and node 2?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [3] | graph_common_neighbor |
The task is to determine the depth-first search (DFS) traversal order given a starting node.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, and 16. The graph contains edges: (1, 2), (1, 3), (1, 4), (2, 3), (2, 4), (2, 5), (3, 4), (3, 7), (4, 7), (4, 8), (4, 14), (5, 11), (5, 16), (5, 12), (7, 8), (6, 8), (8, 14), (8, 10), (11, 14), (11, 12), (11, 13), (12, 15), (12, 13), (6, 10), (6, 9), (9, 10).
Question: What is the depth-first search (DFS) traversal order for the starting node 6?
You need to format your answer as a list of edges in ascending dictionary order, e.g., [(u1, v1), (u2, v2), ..., (un, vn)]. | [(6,8),(8,4),(4,1),(1,2),(2,3),(3,7),(2,5),(5,11),(11,14),(11,12),(12,15),(12,13),(5,16),(8,10),(10,9)] | graph_dfs |
The task is to determine if the graph is bipartite.
A bipartite graph is a graph whose nodes can be divided into two disjoint sets such that no two graph vertices within the same set are adjacent.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, and 30. The graph contains edges: (1, 4), (1, 5), (1, 6), (1, 8), (1, 9), (1, 10), (1, 11), (1, 12), (1, 13), (1, 17), (1, 18), (1, 21), (1, 29), (1, 2), (1, 22), (1, 26), (1, 7), (1, 20), (1, 27), (1, 14), (1, 3), (1, 15), (1, 23), (1, 24), (1, 30), (2, 4), (3, 4), (4, 5), (4, 6), (4, 8), (4, 9), (4, 10), (4, 11), (4, 12), (4, 13), (4, 17), (4, 18), (4, 21), (4, 29), (4, 22), (4, 7), (4, 27), (4, 16), (4, 19), (4, 14), (4, 15), (4, 23), (4, 30), (2, 5), (3, 5), (5, 6), (5, 8), (5, 9), (5, 10), (5, 11), (5, 12), (5, 13), (5, 17), (5, 18), (5, 21), (5, 29), (5, 22), (5, 26), (5, 7), (5, 20), (5, 27), (5, 19), (5, 14), (5, 25), (5, 23), (5, 28), (5, 30), (2, 6), (3, 6), (6, 8), (6, 9), (6, 10), (6, 11), (6, 12), (6, 13), (6, 17), (6, 18), (6, 21), (6, 29), (6, 22), (6, 26), (6, 7), (6, 20), (6, 27), (6, 16), (6, 19), (6, 14), (6, 25), (6, 24), (6, 28), (6, 30), (2, 8), (8, 9), (8, 10), (8, 11), (8, 12), (8, 13), (8, 17), (8, 18), (8, 21), (8, 29), (8, 22), (8, 26), (8, 27), (8, 16), (8, 19), (8, 14), (8, 25), (8, 15), (8, 28), (8, 30), (2, 9), (7, 9), (9, 10), (9, 11), (9, 12), (9, 13), (9, 17), (9, 18), (9, 21), (9, 29), (9, 22), (9, 26), (9, 20), (9, 27), (9, 16), (9, 25), (9, 15), (9, 24), (9, 28), (9, 30), (2, 10), (10, 11), (10, 12), (10, 13), (10, 17), (10, 18), (10, 21), (10, 29), (10, 22), (10, 26), (10, 20), (10, 27), (10, 19), (10, 14), (10, 15), (10, 23), (10, 24), (10, 28), (10, 30), (2, 11), (3, 11), (7, 11), (11, 12), (11, 13), (11, 17), (11, 18), (11, 21), (11, 29), (11, 22), (11, 26), (11, 20), (11, 27), (11, 19), (11, 25), (11, 15), (11, 23), (11, 24), (11, 28), (11, 30), (2, 12), (7, 12), (12, 13), (12, 17), (12, 18), (12, 21), (12, 29), (12, 22), (12, 26), (12, 20), (12, 27), (12, 16), (12, 25), (12, 23), (12, 24), (12, 28), (2, 13), (3, 13), (7, 13), (13, 17), (13, 18), (13, 21), (13, 29), (13, 22), (13, 26), (13, 20), (13, 27), (13, 16), (13, 19), (13, 14), (13, 25), (13, 15), (13, 23), (13, 28), (13, 30), (3, 17), (7, 17), (16, 17), (17, 29), (17, 26), (17, 20), (17, 19), (17, 24), (17, 28), (3, 18), (7, 18), (15, 18), (18, 26), (18, 27), (18, 19), (18, 30), (3, 21), (14, 21), (15, 21), (20, 21), (2, 26), (7, 27), (15, 20).
Question: Is the graph bipartite?
Your answer should be Yes or No. | No | graph_is_bipartite |
The task is to determine the number of isolated nodes in the graph.
An isolated node is a node that has no edges connecting it to any other nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, and 31. The graph contains edges: (1, 24), (1, 19), (1, 30), (4, 24), (6, 19), (3, 30), (4, 30), (2, 5), (2, 25), (2, 31), (5, 18), (8, 25), (11, 25), (8, 31), (3, 12), (12, 29), (15, 18), (18, 27), (7, 16), (7, 22), (9, 16), (16, 21), (21, 22), (9, 20), (10, 20), (14, 20), (13, 29), (15, 26), (26, 27), (17, 21), (21, 28), (17, 23), (23, 28).
Question: How many isolated nodes are there in the graph?
| 0 | graph_isolate_number |
The task is to determine if the graph is Eulerian.
An Eulerian graph is a graph that contains an Eulerian circuit, which is a cycle that visits every edge exactly once.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, and 32. The graph contains edges: (1, 27), (7, 27), (19, 27), (27, 32), (27, 29), (2, 25), (2, 28), (24, 25), (18, 28), (3, 6), (3, 11), (6, 23), (6, 14), (11, 20), (4, 26), (4, 17), (4, 21), (8, 21), (5, 13), (8, 13), (9, 30), (9, 16), (20, 30), (10, 18), (12, 22), (22, 31), (15, 24), (15, 31).
Question: Is the graph Eulerian?
Your answer should be Yes or No. | No | graph_is_eularian |
The task is to determine the radius of a graph.
The radius of a graph is the minimum eccentricity of any node in the graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, and 31. The graph contains edges: (1, 12), (1, 19), (1, 20), (1, 22), (1, 14), (1, 17), (1, 15), (1, 25), (1, 21), (1, 10), (1, 26), (1, 5), (1, 6), (1, 2), (1, 24), (1, 31), (1, 13), (2, 12), (12, 14), (12, 17), (12, 15), (12, 24), (12, 31), (2, 19), (15, 19), (17, 19), (2, 20), (4, 20), (15, 20), (17, 20), (20, 31), (20, 23), (20, 30), (2, 22), (3, 22), (4, 22), (6, 22), (17, 22), (22, 26), (6, 14), (9, 14), (14, 21), (14, 31), (14, 17), (14, 30), (14, 26), (14, 27), (14, 28), (14, 29), (2, 17), (3, 17), (4, 17), (5, 17), (6, 17), (9, 17), (13, 17), (15, 17), (16, 17), (17, 31), (17, 26), (2, 15), (3, 15), (5, 15), (6, 15), (13, 15), (15, 31), (15, 25), (15, 26), (15, 24), (15, 16), (11, 25), (4, 21), (5, 21), (6, 21), (11, 21), (13, 21), (21, 30), (21, 26), (2, 10), (10, 31), (2, 26), (4, 26), (23, 26), (26, 31), (2, 5), (5, 31), (2, 6), (3, 6), (4, 6), (6, 27), (6, 31), (6, 23), (2, 31), (2, 13), (2, 16), (2, 3), (3, 24), (16, 24), (3, 31), (4, 31), (13, 31), (16, 31), (18, 31), (28, 31), (30, 31), (4, 16), (16, 23), (3, 28), (3, 4), (3, 30), (11, 28), (4, 27), (11, 30), (29, 30), (7, 27), (11, 27), (8, 9), (11, 29).
Question: What is the radius of the graph?
| 2 | graph_radius |
The task is to determine the minimum edge covering of a graph.
An edge cover is a set of edges such that every vertex in the graph is incident to at least one edge in the set. The minimum edge cover is the edge cover with the smallest number of edges.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, and 29. The graph contains edges: (1, 2), (1, 3), (2, 3), (2, 4), (3, 24), (3, 11), (3, 4), (4, 24), (4, 11), (16, 24), (11, 22), (5, 6), (6, 8), (8, 25), (8, 27), (8, 26), (8, 28), (8, 29), (7, 10), (7, 9), (9, 10), (25, 27), (25, 26), (25, 28), (26, 27), (27, 28), (26, 28), (28, 29), (17, 22), (19, 22), (22, 23), (12, 13), (12, 14), (13, 14), (13, 15), (14, 16), (17, 18), (17, 19), (17, 23), (18, 19), (18, 20), (18, 21), (19, 20), (19, 23), (20, 21).
Question: What is the minimum edge covering of the graph?
You need to format your answer as a list of edges in ascending dictionary order, e.g., [(u1, v1), (u2, v2), ..., (un, vn)]. | [(3,1),(4,2),(6,5),(7,10),(9,7),(14,12),(15,13),(16,24),(20,19),(21,18),(22,11),(23,17),(26,27),(28,25),(29,8)] | graph_min_edge_covering |
The task is to determine the depth-first search (DFS) traversal order given a starting node.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, and 5. The graph contains edges: (1, 3), (1, 2), (2, 3), (3, 4), (2, 4), (4, 5).
Question: What is the depth-first search (DFS) traversal order for the starting node 1?
You need to format your answer as a list of edges in ascending dictionary order, e.g., [(u1, v1), (u2, v2), ..., (un, vn)]. | [(1,3),(3,2),(2,4),(4,5)] | graph_dfs |
The task is to determine the degree centrality of a node in the graph.
The degree centrality values are normalized by dividing by the maximum possible degree in a graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, and 21. The graph contains edges: (1, 11), (1, 10), (11, 12), (3, 10), (2, 13), (13, 21), (3, 20), (7, 20), (4, 15), (4, 8), (15, 18), (5, 8), (5, 14), (5, 17), (6, 12), (7, 9), (9, 19), (16, 18).
Question: What is the degree centrality of node 2 in the graph?
You need to format your answer as a float number. | 0.05 | graph_degree_centrality |
The task is to determine if the graph is bipartite.
A bipartite graph is a graph whose nodes can be divided into two disjoint sets such that no two graph vertices within the same set are adjacent.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, and 7. The graph contains edges: (1, 6), (1, 4), (2, 6), (3, 6), (5, 6), (6, 7).
Question: Is the graph bipartite?
Your answer should be Yes or No. | Yes | graph_is_bipartite |
The task is to determine the betweenness centrality of a node in the graph.
Betweenness centrality of a node u is the sum of the fraction of all-pairs shortest paths that pass through u.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, and 18. The graph contains edges: (1, 17), (1, 7), (2, 17), (7, 13), (2, 15), (2, 16), (12, 15), (15, 18), (9, 16), (3, 12), (3, 8), (4, 10), (4, 5), (5, 13), (6, 14), (11, 14), (14, 18).
Question: What is the betweenness centrality of node 7 in the graph?
You need to format your answer as a float number. | 0.38235294117647056 | graph_betweenness_centrality |
The task is to determine the degree centrality of a node in the graph.
The degree centrality values are normalized by dividing by the maximum possible degree in a graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, and 13. The graph contains edges: (1, 2), (1, 3), (1, 4), (1, 5), (1, 7), (1, 12), (2, 3), (2, 4), (2, 5), (2, 6), (3, 4), (3, 9), (3, 10), (3, 6), (4, 7), (4, 10), (4, 6), (5, 7), (5, 12), (5, 11), (7, 12), (11, 12), (12, 13), (6, 8), (6, 9), (6, 10), (8, 9), (9, 10).
Question: What is the degree centrality of node 7 in the graph?
You need to format your answer as a float number. | 0.3333333333333333 | graph_degree_centrality |
The task is to determine the constraint of a node in a graph.
The constraint of a node is a measure of how much the node is constrained by its neighbors.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, and 29. The graph contains edges: (1, 24), (1, 10), (10, 24), (22, 24), (2, 27), (2, 28), (2, 3), (2, 4), (2, 5), (25, 27), (26, 27), (27, 28), (26, 28), (3, 4), (3, 5), (4, 5), (6, 9), (6, 23), (6, 20), (9, 23), (9, 20), (20, 23), (19, 20), (20, 21), (7, 11), (7, 8), (7, 29), (8, 11), (8, 29), (18, 29), (12, 21), (12, 19), (12, 14), (12, 13), (19, 21), (14, 19), (13, 14), (15, 17), (15, 22), (16, 17), (25, 26).
Question: What is the constraint of node 5 in the graph?
You need to format your answer as a float number. | 0.8311111111111109 | graph_constraint |
The task is to determine the local connectivity of two nodes in the graph.
Local connectivity is whether there exists at least one path between the two nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, and 28. The graph contains edges: (1, 2), (1, 3), (1, 4), (1, 5), (2, 3), (2, 4), (3, 5), (3, 6), (4, 7), (5, 8), (5, 9), (7, 26), (8, 9), (8, 27), (8, 28), (9, 27), (9, 28), (24, 26), (27, 28), (10, 12), (10, 13), (10, 14), (11, 12), (11, 13), (13, 14), (11, 14), (15, 16), (15, 17), (15, 18), (16, 17), (16, 18), (17, 18), (18, 21), (21, 22), (19, 20), (20, 25), (23, 25), (23, 24).
Question: What is the local connectivity between node 3 and node 15 in the graph?
| No | graph_local_connectivity |
The task is to determine the barycenter of a graph.
The barycenter of a graph is also called the median. It includes the node that minimizes the sum of distances to all other nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, and 13. The graph contains edges: (1, 2), (1, 5), (2, 7), (2, 8), (2, 11), (5, 6), (7, 12), (7, 8), (7, 11), (8, 12), (8, 11), (11, 12), (3, 13), (3, 4), (4, 13), (4, 6), (4, 9), (4, 10), (6, 9), (9, 10).
Question: What is the barycenter of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [5] | graph_barycenter |
The task is to determine if the directed graph is strongly connected.
A directed graph is strongly connected if there is a directed path between every pair of vertices.
Here is a directed graph. In the graph, (u, v) means that there is an edge from node u to node v. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, and 24. The graph contains edges: (1, 2), (1, 3), (2, 1), (2, 7), (2, 8), (3, 1), (3, 11), (3, 12), (7, 2), (7, 15), (7, 16), (7, 4), (8, 2), (8, 17), (8, 18), (8, 5), (11, 3), (11, 4), (11, 19), (12, 3), (12, 5), (12, 20), (12, 21), (4, 1), (4, 7), (4, 11), (5, 1), (5, 8), (5, 12), (6, 1), (6, 9), (6, 13), (9, 2), (9, 15), (9, 17), (9, 6), (13, 3), (13, 20), (13, 6), (15, 7), (15, 9), (16, 7), (16, 10), (17, 8), (17, 9), (17, 22), (17, 24), (18, 8), (18, 10), (18, 23), (10, 2), (10, 16), (10, 18), (19, 11), (19, 14), (20, 12), (20, 24), (20, 13), (21, 12), (21, 14), (14, 3), (14, 19), (14, 21), (22, 15), (22, 17), (22, 18), (22, 20), (24, 17), (24, 5), (24, 20), (24, 6), (23, 16), (23, 17), (23, 18), (23, 21).
Question: Is the directed graph strongly connected?
Your answer should be Yes or No. | Yes | graph_is_strongly_connected |
The task is to determine the average degree of the neighbors of a node in the graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, and 32. The graph contains edges: (1, 11), (1, 12), (7, 11), (11, 12), (7, 12), (2, 32), (2, 30), (17, 32), (3, 5), (5, 29), (4, 6), (4, 8), (4, 9), (4, 10), (6, 8), (6, 10), (8, 28), (9, 10), (13, 29), (19, 29), (20, 29), (13, 20), (13, 19), (13, 18), (18, 19), (14, 15), (15, 17), (15, 16), (16, 17), (17, 31), (21, 22), (21, 23), (22, 23), (22, 24), (24, 25), (25, 26), (25, 27), (26, 27).
Question: What is the average neighbor degree of node 23 in the graph?
You need to format your answer as a float number. | 2.5 | graph_avg_neighbor_degree |
The task is to determine the center of a graph.
The center of a graph includes the node that minimizes the maximum distance to all other nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, and 6. The graph contains edges: (1, 2), (1, 3), (1, 4), (1, 5), (2, 3), (2, 4), (4, 5), (5, 6).
Question: What is the center of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [1,4,5] | graph_center |
The task is to determine the degree of a node in the graph. For the undirected graph, you should count the edge between two nodes only once.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, and 18. The graph contains edges: (1, 18), (1, 2), (1, 12), (1, 11), (2, 18), (3, 18), (4, 18), (7, 18), (11, 18), (12, 18), (13, 18), (2, 12), (2, 11), (3, 12), (4, 12), (7, 12), (11, 12), (12, 13), (3, 14), (3, 13), (3, 10), (3, 4), (3, 8), (3, 7), (4, 14), (5, 14), (6, 14), (7, 14), (8, 14), (10, 14), (13, 14), (14, 15), (4, 13), (7, 13), (8, 13), (10, 13), (4, 10), (5, 10), (6, 10), (7, 10), (8, 10), (10, 15), (4, 8), (4, 7), (5, 8), (6, 8), (7, 8), (8, 15), (5, 6), (5, 16), (5, 15), (6, 16), (6, 15), (15, 16), (16, 17), (9, 17).
Question: What is the degree of node 9 in the graph?
| 1 | graph_degree |
The task is to determine the Adamic-Adar index of two nodes in a graph.
The Adamic-Adar index is the sum of the inverse logarithm of the degrees of the common neighbors of the two nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, and 9. The graph contains edges: (1, 9), (1, 5), (1, 2), (5, 9), (2, 5), (5, 7), (2, 4), (2, 6), (2, 7), (2, 8), (3, 4), (4, 6), (4, 7), (3, 6), (6, 7), (3, 7), (7, 8).
Question: What is the Adamic-Adar index between node 3 and node 9?
You need to format your answer as a float number. | 0 | graph_adamic_adar_index |
The task is to determine the degree of a node in the graph. For the undirected graph, you should count the edge between two nodes only once.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, and 26. The graph contains edges: (1, 2), (1, 3), (2, 5), (2, 3), (3, 4), (3, 5), (4, 5), (5, 26), (4, 26), (24, 26), (25, 26), (6, 15), (6, 21), (13, 15), (14, 15), (15, 21), (20, 21), (7, 8), (7, 16), (7, 11), (7, 17), (7, 10), (8, 16), (8, 9), (8, 11), (16, 17), (9, 11), (10, 11), (11, 12), (9, 10), (12, 22), (13, 14), (14, 20), (18, 19), (23, 24), (24, 25).
Question: What is the degree of node 12 in the graph?
| 2 | graph_degree |
The task is to determine the global efficiency of a graph.
Global efficiency is the average of the inverse shortest path lengths between all pairs of nodes in the graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, and 17. The graph contains edges: (1, 14), (1, 2), (6, 14), (2, 16), (4, 16), (7, 16), (9, 16), (10, 16), (11, 16), (16, 17), (3, 5), (3, 12), (5, 12), (5, 9), (11, 12), (6, 8), (7, 8), (10, 15), (11, 13), (11, 17).
Question: What is the global efficiency of the graph?
You need to format your answer as a float number. | 0.4481617647058821 | graph_global_efficiency |
The task is to determine the depth-first search (DFS) traversal order given a starting node.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, and 19. The graph contains edges: (1, 2), (1, 3), (1, 4), (1, 6), (2, 3), (2, 4), (2, 5), (3, 4), (3, 7), (3, 8), (3, 5), (4, 8), (4, 5), (6, 9), (6, 10), (5, 18), (5, 7), (5, 8), (7, 17), (7, 18), (7, 8), (8, 17), (17, 18), (9, 10), (10, 13), (10, 14), (16, 17), (13, 19), (13, 14), (14, 19), (11, 12), (12, 15), (15, 16).
Question: What is the depth-first search (DFS) traversal order for the starting node 9?
You need to format your answer as a list of edges in ascending dictionary order, e.g., [(u1, v1), (u2, v2), ..., (un, vn)]. | [(9,6),(6,1),(1,2),(2,3),(3,4),(4,8),(8,5),(5,18),(18,7),(7,17),(17,16),(16,15),(15,12),(12,11),(6,10),(10,13),(13,19),(19,14)] | graph_dfs |
The task is to determine the neighbors of a node in the graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, and 9. The graph contains edges: (1, 9), (1, 3), (2, 3), (4, 5), (5, 6), (5, 7), (5, 8).
Question: What are the neighbors of node 7 in the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [5] | graph_neighbor |
The task is to determine common neighbors between two nodes in the graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, and 20. The graph contains edges: (1, 5), (1, 7), (1, 9), (1, 10), (1, 13), (1, 14), (1, 18), (1, 19), (1, 2), (1, 3), (1, 4), (1, 11), (1, 15), (1, 16), (1, 17), (1, 20), (1, 6), (1, 8), (1, 12), (2, 5), (3, 5), (4, 5), (5, 7), (5, 9), (5, 10), (5, 13), (5, 14), (5, 18), (5, 19), (5, 15), (5, 16), (5, 17), (5, 20), (5, 6), (5, 8), (5, 12), (2, 7), (3, 7), (4, 7), (6, 7), (7, 9), (7, 10), (7, 13), (7, 14), (7, 19), (7, 11), (7, 15), (7, 16), (7, 17), (7, 20), (7, 8), (7, 12), (2, 9), (3, 9), (4, 9), (6, 9), (8, 9), (9, 10), (9, 13), (9, 14), (9, 18), (9, 19), (9, 11), (9, 15), (9, 16), (9, 17), (9, 20), (9, 12), (2, 10), (3, 10), (4, 10), (6, 10), (8, 10), (10, 13), (10, 14), (10, 18), (10, 19), (10, 11), (10, 15), (10, 16), (10, 17), (10, 20), (10, 12), (2, 13), (3, 13), (4, 13), (6, 13), (8, 13), (11, 13), (12, 13), (13, 14), (13, 18), (13, 19), (13, 15), (13, 16), (13, 17), (13, 20), (2, 14), (3, 14), (4, 14), (6, 14), (8, 14), (11, 14), (12, 14), (14, 18), (14, 19), (14, 15), (14, 16), (14, 17), (14, 20), (2, 18), (3, 18), (4, 18), (6, 18), (8, 18), (11, 18), (12, 18), (15, 18), (16, 18), (17, 18), (18, 19), (18, 20), (2, 19), (3, 19), (4, 19), (6, 19), (8, 19), (11, 19), (12, 19), (15, 19), (16, 19), (17, 19), (19, 20), (2, 3), (2, 4), (2, 11), (2, 15), (2, 16), (2, 17), (2, 20), (2, 6), (2, 8), (2, 12), (3, 4), (3, 11), (3, 15), (3, 16), (3, 17), (3, 20), (3, 6), (3, 8), (3, 12), (4, 11), (4, 15), (4, 16), (4, 17), (4, 20), (4, 6), (4, 8), (4, 12), (6, 11), (8, 11), (11, 15), (11, 16), (11, 17), (11, 20), (11, 12), (6, 15), (8, 15), (12, 15), (15, 16), (15, 17), (15, 20), (6, 16), (8, 16), (12, 16), (16, 17), (16, 20), (6, 17), (8, 17), (12, 17), (17, 20), (6, 20), (8, 20), (12, 20), (6, 8), (6, 12), (8, 12).
Question: What are the common neighbors between node 6 and node 11?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [1,2,3,4,7,8,9,10,12,13,14,15,16,17,18,19,20] | graph_common_neighbor |
The task is to determine if the graph is Eulerian.
An Eulerian graph is a graph that contains an Eulerian circuit, which is a cycle that visits every edge exactly once.
Here is a directed graph. In the graph, (u, v) means that there is an edge from node u to node v. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12. The graph contains edges: (1, 11), (1, 9), (1, 10), (1, 8), (1, 5), (1, 7), (1, 12), (1, 3), (1, 2), (1, 6), (1, 4), (11, 9), (11, 10), (11, 8), (11, 5), (11, 7), (11, 12), (11, 1), (11, 3), (11, 2), (11, 6), (11, 4), (9, 11), (9, 10), (9, 8), (9, 5), (9, 7), (9, 12), (9, 1), (9, 3), (9, 2), (9, 6), (9, 4), (10, 11), (10, 9), (10, 8), (10, 5), (10, 7), (10, 12), (10, 1), (10, 3), (10, 2), (10, 6), (10, 4), (8, 11), (8, 9), (8, 10), (8, 5), (8, 7), (8, 12), (8, 1), (8, 3), (8, 2), (8, 6), (8, 4), (5, 11), (5, 9), (5, 10), (5, 8), (5, 7), (5, 12), (5, 1), (5, 3), (5, 2), (5, 6), (5, 4), (7, 11), (7, 9), (7, 10), (7, 8), (7, 5), (7, 12), (7, 1), (7, 3), (7, 2), (7, 6), (7, 4), (12, 11), (12, 9), (12, 10), (12, 8), (12, 5), (12, 7), (12, 1), (12, 3), (12, 2), (12, 6), (12, 4), (3, 11), (3, 9), (3, 10), (3, 8), (3, 5), (3, 7), (3, 12), (3, 1), (3, 2), (3, 6), (3, 4), (2, 11), (2, 9), (2, 10), (2, 8), (2, 5), (2, 7), (2, 12), (2, 1), (2, 3), (2, 6), (2, 4), (6, 11), (6, 9), (6, 10), (6, 8), (6, 5), (6, 7), (6, 12), (6, 1), (6, 3), (6, 2), (6, 4), (4, 11), (4, 9), (4, 10), (4, 8), (4, 5), (4, 7), (4, 12), (4, 1), (4, 3), (4, 2), (4, 6).
Question: Is the graph Eulerian?
Your answer should be Yes or No. | Yes | graph_is_eularian |
The task is to determine the harmonic centrality of a node in the graph.
Harmonic centrality of a node u is the sum of the reciprocal of the shortest path distances from all other nodes to u (direction is not considered for undirected graphs).
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, and 5. The graph contains edges: (1, 4), (1, 5), (2, 4), (2, 3).
Question: What is the harmonic centrality of node 3 in the graph?
You need to format your answer as a float number. | 2.083333333333333 | graph_harmonic_centrality |
The task is to determine the betweenness centrality of a node in the graph.
Betweenness centrality of a node u is the sum of the fraction of all-pairs shortest paths that pass through u.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, and 15. The graph contains edges: (1, 15), (1, 5), (1, 10), (1, 11), (1, 13), (1, 3), (2, 15), (3, 15), (5, 15), (6, 15), (7, 15), (8, 15), (9, 15), (10, 15), (11, 15), (12, 15), (13, 15), (14, 15), (2, 5), (3, 5), (5, 10), (5, 11), (5, 13), (5, 9), (5, 12), (5, 14), (5, 6), (2, 10), (4, 10), (6, 10), (7, 10), (8, 10), (10, 11), (10, 13), (10, 12), (10, 14), (2, 11), (3, 11), (4, 11), (6, 11), (8, 11), (9, 11), (11, 13), (11, 12), (11, 14), (3, 13), (4, 13), (7, 13), (8, 13), (9, 13), (12, 13), (13, 14), (3, 14), (3, 7), (3, 6), (6, 9).
Question: What is the betweenness centrality of node 7 in the graph?
You need to format your answer as a float number. | 0.0013736263736263737 | graph_betweenness_centrality |
The task is to determine the barycenter of a graph.
The barycenter of a graph is also called the median. It includes the node that minimizes the sum of distances to all other nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, and 8. The graph contains edges: (1, 4), (1, 3), (3, 4), (4, 8), (2, 5), (5, 8), (5, 7), (6, 8), (7, 8), (6, 7).
Question: What is the barycenter of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [8] | graph_barycenter |
The task is to determine the Adamic-Adar index of two nodes in a graph.
The Adamic-Adar index is the sum of the inverse logarithm of the degrees of the common neighbors of the two nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, and 23. The graph contains edges: (1, 23), (1, 18), (18, 23), (3, 18), (2, 4), (2, 5), (4, 21), (4, 5), (5, 6), (5, 21), (3, 22), (20, 22), (6, 7), (7, 8), (8, 9), (10, 11), (10, 12), (10, 13), (11, 12), (12, 14), (12, 13), (13, 14), (13, 15), (14, 15), (16, 17), (19, 20).
Question: What is the Adamic-Adar index between node 3 and node 13?
You need to format your answer as a float number. | 0 | graph_adamic_adar_index |
The task is to determine the topological sort of a directed acyclic graph (DAG).
Here is a directed graph. In the graph, (u, v) means that there is an edge from node u to node v. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, and 26. The graph contains edges: (1, 25), (1, 17), (25, 9), (17, 25), (2, 6), (6, 21), (3, 10), (10, 15), (4, 23), (4, 11), (4, 12), (11, 23), (12, 23), (12, 11), (5, 16), (16, 18), (21, 13), (7, 2), (8, 5), (8, 19), (19, 5), (15, 14), (13, 11), (13, 12), (13, 4), (18, 17), (18, 1), (20, 24), (24, 3), (22, 8), (26, 7).
Question: What is the topological sort of the directed acyclic graph (DAG)?
You need to format your answer as a list of nodes, e.g., [node-1, node-2, ..., node-n]. | [20,22,26,24,8,7,3,19,2,10,5,6,15,16,21,14,18,13,1,4,17,12,25,11,9,23] | graph_topological_sort |
The task is to find all bridges of a graph.
A bridge is an edge in a graph whose removal increases the number of connected components.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, and 33. The graph contains edges: (1, 4), (1, 14), (1, 16), (1, 15), (4, 14), (4, 16), (4, 15), (4, 27), (14, 16), (14, 31), (14, 15), (14, 27), (15, 16), (16, 27), (15, 27), (2, 3), (2, 32), (2, 33), (3, 28), (3, 32), (3, 33), (32, 33), (17, 27), (22, 27), (27, 31), (5, 7), (6, 7), (8, 11), (8, 12), (8, 13), (8, 9), (8, 10), (8, 30), (9, 11), (10, 11), (11, 12), (11, 13), (9, 12), (10, 12), (12, 13), (9, 13), (10, 13), (9, 10), (26, 30), (17, 31), (17, 22), (17, 18), (19, 24), (19, 29), (19, 20), (19, 25), (24, 25), (20, 29), (21, 29), (25, 29), (20, 25), (20, 21), (23, 26).
Question: What are the bridges of the graph?
You need to format your answer as a list of edges in ascending dictionary order, e.g., [(u1, v1), (u2, v2), ..., (un, vn)]. | [(3,28),(5,7),(6,7),(8,30),(17,18),(23,26),(26,30)] | graph_bridges |
The task is to determine the resource allocation index of two nodes in a graph.
The resource allocation index of two nodes is the sum of the inverse of the degrees of the common neighbors of the two nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, and 6. The graph contains edges: (1, 2), (1, 3), (2, 3), (2, 6), (3, 5), (3, 6), (5, 6), (4, 5).
Question: What is the resource allocation index between node 4 and node 5?
You need to format your answer as a float number. | 0 | graph_resource_allocation_index |
The task is to determine the betweenness centrality of a node in the graph.
Betweenness centrality of a node u is the sum of the fraction of all-pairs shortest paths that pass through u.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, and 11. The graph contains edges: (1, 4), (1, 5), (1, 2), (1, 3), (2, 4), (4, 10), (4, 5), (4, 11), (2, 5), (5, 11), (2, 9), (2, 10), (2, 11), (6, 9), (7, 9), (9, 10), (9, 11), (6, 10), (7, 10), (10, 11), (7, 11), (6, 7), (6, 8), (7, 8).
Question: What is the betweenness centrality of node 5 in the graph?
You need to format your answer as a float number. | 0.027160493827160497 | graph_betweenness_centrality |
The task is to determine the betweenness centrality of a node in the graph.
Betweenness centrality of a node u is the sum of the fraction of all-pairs shortest paths that pass through u.
Here is a directed graph. In the graph, (u, v) means that there is an edge from node u to node v. The graph contains nodes: 1, and 2. The graph contains edges: (2, 1).
Question: What is the betweenness centrality of node 2 in the graph?
You need to format your answer as a float number. | 0.0 | graph_betweenness_centrality |
The task is to determine the Wiener index of a connected graph.
The Wiener index of a graph is the sum of the shortest-path distances between each pair of reachable nodes. For pairs of nodes in undirected graphs, only one orientation of the pair is counted.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, and 22. The graph contains edges: (1, 9), (1, 13), (1, 14), (9, 14), (5, 13), (8, 13), (12, 13), (13, 22), (13, 21), (13, 14), (2, 6), (2, 10), (2, 18), (2, 20), (2, 3), (2, 11), (2, 15), (2, 19), (3, 6), (4, 6), (6, 17), (6, 16), (6, 10), (6, 18), (6, 20), (6, 7), (6, 11), (6, 15), (6, 19), (3, 10), (4, 10), (7, 10), (10, 17), (10, 16), (10, 18), (10, 20), (10, 11), (10, 15), (10, 19), (3, 18), (4, 18), (7, 18), (11, 18), (15, 18), (16, 18), (17, 18), (18, 20), (18, 19), (3, 20), (4, 20), (7, 20), (11, 20), (15, 20), (16, 20), (17, 20), (19, 20), (3, 17), (3, 4), (3, 16), (3, 7), (3, 11), (3, 15), (3, 19), (11, 15), (11, 19), (15, 19), (4, 19), (7, 19), (16, 19), (17, 19), (4, 17), (5, 17), (7, 17), (8, 17), (12, 17), (16, 17), (17, 22), (17, 21), (4, 22), (4, 12), (4, 16), (4, 21), (4, 5), (4, 7), (4, 8), (5, 16), (7, 16), (8, 16), (12, 16), (16, 22), (16, 21), (5, 7), (7, 22), (7, 12), (7, 21), (7, 8), (5, 22), (8, 22), (12, 22), (21, 22), (5, 12), (8, 12), (12, 21), (5, 21), (8, 21), (5, 8).
Question: What is the Wiener index of the graph?
You need to format your answer as a float number. | 476.0 | graph_wiener_index |
The task is to determine the minimum vertex cover of a graph.
A vertex cover is a set of nodes such that every edge in the graph is incident to at least one node in the set.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, and 9. The graph contains edges: (1, 3), (3, 8), (3, 7), (2, 6), (5, 6), (4, 8), (7, 8), (7, 9), (4, 5), (4, 9).
Question: What is the minimum vertex cover of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [1,2,3,4,5,7] | graph_min_vertex_cover |
The task is to determine the barycenter of a graph.
The barycenter of a graph is also called the median. It includes the node that minimizes the sum of distances to all other nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, and 18. The graph contains edges: (1, 15), (1, 3), (1, 18), (1, 10), (1, 11), (2, 15), (3, 15), (6, 15), (7, 15), (9, 15), (10, 15), (15, 18), (15, 16), (3, 9), (3, 13), (3, 18), (3, 11), (7, 18), (11, 18), (16, 18), (9, 10), (2, 16), (4, 13), (4, 17), (4, 6), (6, 17), (5, 6), (6, 14), (6, 8), (5, 12).
Question: What is the barycenter of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [15] | graph_barycenter |
Given nodes u and v in a graph, the task is to determine if there is an edge connecting the two nodes.
For undirected graphs, it means whether there are edges between u and v. For directed graphs, it means whether there are edges from u to v.Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10. The graph contains edges: (1, 3), (1, 4), (1, 8), (3, 10), (4, 8), (8, 10), (2, 7), (5, 7), (7, 10), (5, 10), (9, 10), (5, 6), (6, 9).
Question: Is there an edge between node 4 and node 8?
Your answer should be Yes or No. | Yes | graph_edge_existence |
The task is to determine the barycenter of a graph.
The barycenter of a graph is also called the median. It includes the node that minimizes the sum of distances to all other nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, and 33. The graph contains edges: (1, 2), (1, 3), (1, 4), (1, 15), (1, 9), (1, 11), (2, 3), (2, 4), (2, 5), (2, 6), (3, 4), (3, 12), (3, 13), (3, 5), (3, 6), (4, 12), (4, 6), (4, 14), (15, 16), (15, 17), (9, 18), (9, 19), (5, 20), (5, 13), (5, 22), (5, 32), (5, 6), (6, 13), (6, 7), (6, 14), (12, 13), (13, 21), (13, 22), (13, 14), (7, 14), (20, 22), (20, 32), (21, 22), (22, 32), (7, 8), (7, 29), (8, 10), (8, 29), (10, 29), (18, 28), (18, 19), (19, 28), (19, 33), (16, 17), (16, 24), (17, 24), (17, 25), (24, 26), (24, 25), (24, 27), (25, 28), (25, 26), (25, 33), (26, 28), (28, 33), (26, 33), (23, 27), (27, 31), (30, 31).
Question: What is the barycenter of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [1] | graph_barycenter |
The task is to determine the number of edges in the graph. For the undirected graph, you should count the edge between two nodes only once.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10. The graph contains edges: (1, 3), (1, 4), (3, 9), (4, 7), (2, 8), (7, 8), (5, 9), (5, 10), (6, 10).
Question: How many edges are there in the graph?
| 9 | graph_edge_number |
The task is to determine the constraint of a node in a graph.
The constraint of a node is a measure of how much the node is constrained by its neighbors.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, and 14. The graph contains edges: (1, 3), (3, 13), (3, 4), (2, 14), (2, 9), (2, 4), (13, 14), (5, 9), (7, 9), (4, 13), (5, 8), (8, 10), (6, 11), (11, 12), (7, 12).
Question: What is the constraint of node 4 in the graph?
You need to format your answer as a float number. | 0.5061728395061729 | graph_constraint |
The task is to determine the degree of a node in the graph. For the undirected graph, you should count the edge between two nodes only once.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, and 13. The graph contains edges: (1, 13), (1, 10), (10, 13), (4, 10), (2, 5), (2, 3), (4, 5), (3, 9), (6, 7), (6, 8), (7, 8), (11, 12).
Question: What is the degree of node 11 in the graph?
| 1 | graph_degree |
The task is to determine the topological sort of a directed acyclic graph (DAG).
Here is a directed graph. In the graph, (u, v) means that there is an edge from node u to node v. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, and 20. The graph contains edges: (1, 7), (7, 18), (2, 11), (11, 10), (4, 3), (5, 4), (6, 5), (18, 17), (9, 8), (10, 16), (16, 9), (12, 13), (14, 12), (15, 14), (17, 15), (19, 2), (20, 19).
Question: What is the topological sort of the directed acyclic graph (DAG)?
You need to format your answer as a list of nodes, e.g., [node-1, node-2, ..., node-n]. | [1,6,20,7,5,19,18,4,2,17,3,11,15,10,14,16,12,9,13,8] | graph_topological_sort |
The task is to determine the number of strongly connected components in a directed graph.
A strongly connected component is a maximal subgraph where every node is reachable from every other node.
Here is a directed graph. In the graph, (u, v) means that there is an edge from node u to node v. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, and 33. The graph contains edges: (1, 27), (1, 9), (1, 29), (27, 16), (27, 24), (9, 1), (9, 16), (9, 27), (9, 30), (9, 14), (29, 1), (29, 5), (29, 22), (29, 12), (2, 1), (2, 12), (2, 19), (12, 1), (12, 16), (12, 2), (12, 11), (12, 19), (19, 1), (19, 6), (3, 16), (3, 18), (3, 4), (3, 22), (16, 13), (16, 24), (16, 26), (18, 4), (18, 19), (18, 31), (4, 16), (4, 3), (22, 6), (22, 32), (22, 17), (5, 1), (5, 21), (5, 25), (21, 4), (21, 15), (25, 16), (25, 10), (6, 1), (6, 28), (28, 1), (28, 20), (7, 1), (7, 22), (8, 1), (8, 16), (30, 1), (14, 1), (14, 16), (10, 18), (10, 2), (11, 1), (11, 16), (11, 7), (13, 1), (13, 16), (13, 33), (33, 1), (33, 16), (33, 18), (33, 20), (33, 8), (15, 1), (15, 16), (15, 5), (15, 11), (15, 17), (17, 27), (17, 23), (24, 30), (24, 17), (26, 1), (26, 18), (26, 3), (26, 15), (23, 1), (23, 18), (31, 16), (31, 28), (20, 16), (20, 18), (20, 15), (20, 19), (32, 1).
Question: How many strongly connected components are there in the graph?
| 1 | graph_strongly_connected_number |
The task is to determine the number of strongly connected components in a directed graph.
A strongly connected component is a maximal subgraph where every node is reachable from every other node.
Here is a directed graph. In the graph, (u, v) means that there is an edge from node u to node v. The graph contains nodes: 1, 2, 3, 4, and 5. The graph contains edges: (3, 2), (4, 1), (5, 3).
Question: How many strongly connected components are there in the graph?
| 5 | graph_strongly_connected_number |
The task is to determine if the directed graph is strongly connected.
A directed graph is strongly connected if there is a directed path between every pair of vertices.
Here is a directed graph. In the graph, (u, v) means that there is an edge from node u to node v. The graph contains nodes: 1, 2, 3, 4, 5, 6, and 7. The graph contains edges: (1, 7), (1, 6), (1, 2), (1, 4), (1, 5), (7, 6), (7, 1), (7, 2), (6, 7), (6, 1), (6, 4), (6, 3), (6, 5), (2, 7), (2, 1), (2, 4), (2, 5), (4, 6), (4, 1), (4, 2), (4, 5), (5, 6), (5, 1), (5, 2), (5, 4), (3, 6).
Question: Is the directed graph strongly connected?
Your answer should be Yes or No. | Yes | graph_is_strongly_connected |
The task is to determine the density of the graph.
Density is defined as the ratio of the number of edges in the graph to the number of possible edges. For undirected graphs, the density is 2*m/(n*(n-1)), where m is the edge number and n is the node number. For directed graphs, the density is m/(n*(n-1)).
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, and 8. The graph contains edges: (1, 2), (1, 3), (1, 4), (2, 5), (3, 8), (3, 7), (3, 4), (4, 8), (4, 7), (5, 6), (7, 8).
Question: What is the density of the graph?
You need to format your answer as a float number. | 0.39285714285714285 | graph_density |
The task is to find all bridges of a graph.
A bridge is an edge in a graph whose removal increases the number of connected components.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, and 18. The graph contains edges: (1, 9), (1, 5), (1, 7), (3, 9), (9, 11), (5, 15), (5, 7), (2, 4), (2, 8), (3, 4), (4, 10), (4, 12), (8, 18), (8, 14), (3, 10), (3, 11), (10, 12), (15, 16), (6, 17), (6, 14), (13, 17), (14, 18).
Question: What are the bridges of the graph?
You need to format your answer as a list of edges in ascending dictionary order, e.g., [(u1, v1), (u2, v2), ..., (un, vn)]. | [(1,9),(2,4),(2,8),(5,15),(6,14),(6,17),(13,17),(15,16)] | graph_bridges |
The task is to determine the center of a graph.
The center of a graph includes the node that minimizes the maximum distance to all other nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, and 5. The graph contains edges: (1, 3), (1, 4), (2, 3), (4, 5).
Question: What is the center of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [1] | graph_center |
The task is to determine the degree centrality of a node in the graph.
The degree centrality values are normalized by dividing by the maximum possible degree in a graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, and 22. The graph contains edges: (1, 16), (5, 16), (9, 16), (2, 22), (6, 22), (15, 22), (20, 22), (3, 4), (3, 12), (4, 11), (4, 17), (12, 18), (10, 11), (11, 21), (5, 14), (5, 19), (6, 7), (7, 8), (13, 15).
Question: What is the degree centrality of node 8 in the graph?
You need to format your answer as a float number. | 0.047619047619047616 | graph_degree_centrality |
The task is to determine the betweenness centrality of a node in the graph.
Betweenness centrality of a node u is the sum of the fraction of all-pairs shortest paths that pass through u.
Here is a directed graph. In the graph, (u, v) means that there is an edge from node u to node v. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, and 27. The graph contains edges: (1, 2), (1, 9), (1, 6), (2, 1), (2, 7), (2, 8), (2, 10), (2, 11), (2, 13), (2, 18), (2, 4), (2, 24), (2, 26), (9, 16), (9, 22), (6, 1), (6, 8), (6, 10), (6, 12), (6, 15), (6, 18), (6, 19), (6, 4), (6, 21), (6, 23), (6, 25), (8, 27), (4, 2), (4, 6), (4, 14), (3, 2), (3, 6), (5, 2), (5, 6), (17, 16), (17, 20), (17, 22).
Question: What is the betweenness centrality of node 18 in the graph?
You need to format your answer as a float number. | 0.0 | graph_betweenness_centrality |
The task is to determine the center of a graph.
The center of a graph includes the node that minimizes the maximum distance to all other nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, and 23. The graph contains edges: (1, 7), (1, 5), (2, 7), (7, 12), (7, 17), (7, 8), (4, 5), (5, 14), (2, 8), (8, 18), (8, 20), (8, 11), (3, 11), (3, 16), (11, 20), (4, 14), (4, 19), (14, 21), (14, 22), (14, 19), (19, 22), (6, 9), (6, 10), (9, 15), (9, 10), (10, 15), (12, 13), (12, 17), (12, 18), (13, 17), (18, 20), (15, 21), (21, 22), (22, 23).
Question: What is the center of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [1,5] | graph_center |
The task is to determine if the graph has a cycle.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, and 20. The graph contains edges: (1, 3), (1, 2), (1, 4), (3, 4), (2, 13), (2, 14), (2, 4), (5, 17), (5, 18), (9, 17), (17, 18), (9, 18), (6, 11), (6, 7), (6, 8), (6, 12), (7, 11), (8, 11), (7, 8), (7, 12), (8, 12), (12, 19), (9, 10), (16, 19), (15, 20), (15, 16), (16, 20).
Question: Does the graph have a cycle?
Your answer should be Yes or No. | Yes | graph_has_cycle |
The task is to determine the degree centrality of a node in the graph.
The degree centrality values are normalized by dividing by the maximum possible degree in a graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, and 11. The graph contains edges: (1, 2), (1, 3), (2, 3), (2, 4), (3, 4), (5, 6), (5, 8), (5, 9), (5, 10), (6, 7), (8, 9), (8, 10), (7, 9), (9, 11), (9, 10).
Question: What is the degree centrality of node 8 in the graph?
You need to format your answer as a float number. | 0.30000000000000004 | graph_degree_centrality |
The task is to determine the resource allocation index of two nodes in a graph.
The resource allocation index of two nodes is the sum of the inverse of the degrees of the common neighbors of the two nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, and 15. The graph contains edges: (1, 2), (1, 15), (2, 6), (8, 15), (6, 14), (3, 11), (11, 13), (4, 9), (4, 7), (7, 14), (7, 10), (5, 12), (12, 13), (8, 10).
Question: What is the resource allocation index between node 3 and node 14?
You need to format your answer as a float number. | 0 | graph_resource_allocation_index |
The task is to determine the degree assortativity coefficient of a graph.
The degree assortativity coefficient is a measure of the correlation between the degrees of connected nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, and 15. The graph contains edges: (1, 11), (1, 7), (5, 11), (8, 11), (11, 12), (7, 10), (2, 12), (2, 13), (5, 12), (3, 4), (4, 15), (4, 9), (14, 15), (8, 9), (6, 8), (10, 14).
Question: What is the degree assortativity of the graph?
You need to format your answer as a float number. | -0.09714285714285714 | graph_degree_assortativity |
The task is to determine the Adamic-Adar index of two nodes in a graph.
The Adamic-Adar index is the sum of the inverse logarithm of the degrees of the common neighbors of the two nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, and 18. The graph contains edges: (1, 17), (1, 18), (16, 18), (2, 8), (3, 8), (4, 8), (6, 8), (4, 9), (5, 11), (11, 13), (6, 7), (10, 12), (10, 13), (12, 15), (14, 15).
Question: What is the Adamic-Adar index between node 8 and node 9?
You need to format your answer as a float number. | 1.4426950408889634 | graph_adamic_adar_index |
The task is to determine the number of edges in the graph. For the undirected graph, you should count the edge between two nodes only once.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, and 18. The graph contains edges: (1, 2), (1, 3), (2, 5), (2, 6), (3, 7), (3, 5), (5, 9), (7, 9), (4, 13), (12, 13), (8, 10), (10, 18), (17, 18), (11, 15), (12, 14), (14, 16), (16, 17).
Question: How many edges are there in the graph?
| 17 | graph_edge_number |
The task is to determine the number of isolated nodes in the graph.
An isolated node is a node that has no edges connecting it to any other nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, and 14. The graph contains edges: (1, 6), (1, 11), (1, 13), (10, 11), (3, 13), (4, 13), (8, 13), (2, 9), (2, 4), (8, 9), (3, 8), (3, 12), (7, 12), (5, 7), (10, 14).
Question: How many isolated nodes are there in the graph?
| 0 | graph_isolate_number |
The task is to determine the neighbors of a node in the graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12. The graph contains edges: (1, 11), (1, 2), (4, 11), (2, 8), (8, 9), (3, 12), (10, 12), (4, 5), (6, 7), (6, 9).
Question: What are the neighbors of node 4 in the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [5,11] | graph_neighbor |
The task is to determine the betweenness centrality of a node in the graph.
Betweenness centrality of a node u is the sum of the fraction of all-pairs shortest paths that pass through u.
Here is a directed graph. In the graph, (u, v) means that there is an edge from node u to node v. The graph contains nodes: 1, and 2. The graph contains edges: (1, 2).
Question: What is the betweenness centrality of node 2 in the graph?
You need to format your answer as a float number. | 0.0 | graph_betweenness_centrality |
The task is to determine the harmonic centrality of a node in the graph.
Harmonic centrality of a node u is the sum of the reciprocal of the shortest path distances from all other nodes to u (direction is not considered for undirected graphs).
Here is a directed graph. In the graph, (u, v) means that there is an edge from node u to node v. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, and 20. The graph contains edges: (1, 12), (1, 13), (1, 5), (1, 14), (1, 15), (1, 2), (1, 7), (1, 8), (1, 18), (1, 17), (1, 11), (1, 9), (12, 1), (12, 13), (13, 1), (13, 15), (13, 7), (13, 8), (13, 18), (13, 17), (13, 11), (5, 1), (5, 19), (5, 18), (5, 17), (5, 11), (14, 1), (14, 13), (14, 15), (14, 2), (14, 4), (14, 8), (14, 18), (14, 17), (14, 11), (15, 1), (15, 13), (15, 14), (15, 7), (15, 8), (15, 18), (15, 17), (15, 11), (2, 1), (2, 19), (2, 14), (2, 17), (2, 11), (2, 9), (7, 1), (7, 19), (7, 5), (7, 14), (7, 15), (7, 2), (7, 4), (7, 6), (7, 8), (7, 18), (7, 17), (7, 11), (8, 1), (8, 13), (8, 10), (8, 19), (8, 14), (8, 15), (8, 3), (8, 2), (8, 7), (8, 18), (8, 17), (8, 11), (18, 1), (18, 19), (18, 14), (18, 15), (18, 3), (18, 8), (18, 17), (18, 11), (17, 1), (17, 13), (17, 5), (17, 14), (17, 15), (17, 3), (17, 2), (17, 7), (17, 4), (17, 8), (17, 18), (17, 16), (17, 20), (17, 11), (11, 1), (11, 10), (11, 19), (11, 14), (11, 15), (11, 3), (11, 2), (11, 7), (11, 4), (11, 8), (11, 18), (11, 17), (11, 9), (9, 19), (9, 15), (9, 8), (9, 11), (19, 10), (19, 5), (19, 8), (3, 1), (3, 19), (3, 7), (3, 8), (3, 18), (3, 17), (3, 20), (20, 7), (20, 4), (20, 17), (20, 11), (4, 1), (4, 15), (4, 7), (4, 8), (4, 17), (4, 16), (4, 11), (16, 1), (16, 2), (16, 17), (6, 7), (6, 4), (6, 17), (10, 19), (10, 5), (10, 7).
Question: What is the harmonic centrality of node 7 in the graph?
You need to format your answer as a float number. | 15.0 | graph_harmonic_centrality |
The task is to determine the number of nodes in the graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10. The graph contains edges: (1, 4), (4, 7), (2, 7), (2, 3), (3, 5), (3, 8), (3, 10), (5, 8), (5, 10), (5, 6), (8, 9), (8, 10), (6, 10).
Question: How many nodes are there in the graph?
| 10 | graph_node_number |
The task is to find the number of triangles that include a specific node as one vertex.
A triangle is a set of three nodes that are all connected to each other.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, and 32. The graph contains edges: (1, 2), (1, 3), (2, 22), (2, 12), (2, 7), (3, 22), (3, 32), (12, 22), (12, 13), (7, 16), (31, 32), (4, 29), (4, 30), (4, 31), (30, 31), (5, 6), (5, 11), (5, 10), (6, 11), (8, 11), (10, 11), (9, 10), (16, 26), (16, 28), (8, 9), (13, 21), (13, 14), (21, 27), (14, 17), (14, 15), (15, 17), (17, 19), (17, 18), (15, 19), (18, 19), (19, 20), (25, 26), (26, 28), (25, 28), (20, 24), (20, 27), (23, 24), (24, 27).
Question: How many triangles include node 1 in the graph?
| 0 | graph_triangles |
The task is to determine the number of weakly connected components in a directed graph.
A weakly connected component is a maximal subgraph where every node is reachable from every other node when ignoring the direction of edges.
Here is a directed graph. In the graph, (u, v) means that there is an edge from node u to node v. The graph contains nodes: 1, 2, 3, 4, 5, and 6. The graph contains edges: (1, 6), (6, 5), (2, 3), (3, 6), (4, 2), (5, 1).
Question: How many weakly connected components are there in the graph?
| 1 | graph_weakly_connected_number |
The task is to determine the degree assortativity coefficient of a graph.
The degree assortativity coefficient is a measure of the correlation between the degrees of connected nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, and 17. The graph contains edges: (1, 2), (2, 7), (7, 13), (3, 6), (4, 6), (6, 9), (4, 8), (4, 16), (11, 16), (5, 12), (5, 13), (12, 15), (10, 17), (14, 17), (14, 15).
Question: What is the degree assortativity of the graph?
You need to format your answer as a float number. | -0.3333333333333331 | graph_degree_assortativity |
The task is to determine the number of nodes in the graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, and 22. The graph contains edges: (1, 2), (1, 6), (1, 7), (1, 8), (2, 3), (2, 4), (2, 5), (2, 6), (2, 7), (6, 18), (6, 14), (6, 7), (8, 20), (3, 5), (3, 9), (4, 5), (4, 10), (4, 11), (4, 12), (4, 13), (4, 14), (5, 11), (5, 15), (5, 9), (9, 11), (9, 15), (10, 12), (10, 17), (11, 15), (12, 13), (12, 14), (12, 17), (12, 22), (13, 16), (13, 14), (14, 18), (15, 21), (15, 19), (15, 20), (19, 20), (20, 21), (17, 22), (16, 22), (19, 21).
Question: How many nodes are there in the graph?
| 22 | graph_node_number |
The task is to determine the minimum spanning tree of a graph.
A minimum spanning tree is a subset of the edges that connects all vertices in the graph with the minimum possible total edge weight. If not specified, all edges have equal edge weights
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, and 22. The graph contains edges: (1, 2), (1, 4), (1, 10), (1, 9), (1, 16), (1, 3), (1, 5), (1, 14), (1, 15), (1, 19), (1, 7), (1, 8), (3, 4), (4, 5), (4, 6), (4, 7), (4, 8), (3, 10), (5, 10), (7, 10), (8, 10), (9, 10), (10, 11), (10, 12), (10, 13), (10, 14), (10, 15), (5, 9), (7, 9), (8, 9), (9, 16), (9, 13), (9, 15), (9, 17), (9, 18), (9, 19), (9, 20), (5, 16), (7, 16), (8, 16), (13, 16), (16, 17), (16, 18), (16, 19), (16, 20), (3, 12), (3, 5), (3, 14), (3, 15), (3, 6), (3, 7), (3, 8), (5, 12), (5, 13), (5, 21), (5, 14), (5, 15), (5, 19), (5, 6), (5, 7), (5, 8), (7, 14), (8, 14), (11, 14), (12, 14), (13, 14), (14, 15), (7, 15), (8, 15), (12, 15), (7, 19), (8, 19), (6, 7), (7, 12), (7, 13), (7, 17), (7, 18), (7, 20), (7, 8), (7, 22), (6, 8), (8, 12), (8, 13), (8, 21), (8, 22), (12, 21), (17, 20).
Question: What is the minimum spanning tree of the graph?
You need to format your answer as a list of edges in ascending dictionary order, e.g., [(u1, v1), (u2, v2), ..., (un, vn)]. | [(1,2),(1,3),(1,4),(1,5),(1,7),(1,8),(1,9),(1,10),(1,14),(1,15),(1,16),(1,19),(3,6),(3,12),(5,13),(5,21),(7,17),(7,18),(7,20),(7,22),(10,11)] | graph_minimum_spanning_tree |
The task is to determine the number of connected components in the graph.
A connected component is a subgraph where any two nodes are connected to each other by paths.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, and 21. The graph contains edges: (1, 2), (1, 8), (1, 9), (1, 6), (1, 7), (2, 3), (2, 4), (2, 5), (2, 6), (2, 7), (6, 9), (7, 9), (5, 6), (6, 13), (6, 7), (7, 10), (3, 14), (3, 16), (3, 12), (3, 4), (3, 17), (4, 15), (4, 16), (5, 13), (5, 12), (5, 17), (14, 15), (14, 16), (14, 17), (15, 16), (16, 18), (11, 12), (12, 13), (12, 17), (15, 18), (11, 13), (10, 19), (18, 20), (18, 21), (20, 21).
Question: How many connected components are there in the graph?
| 1 | graph_connected_component_number |
The task is to determine the barycenter of a graph.
The barycenter of a graph is also called the median. It includes the node that minimizes the sum of distances to all other nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, and 19. The graph contains edges: (1, 7), (1, 8), (7, 16), (7, 8), (2, 8), (8, 16), (2, 18), (2, 3), (2, 4), (2, 6), (2, 11), (2, 15), (6, 18), (18, 19), (3, 19), (3, 4), (3, 5), (3, 13), (4, 5), (4, 6), (5, 6), (6, 11), (11, 12), (11, 13), (11, 15), (12, 13), (14, 16), (16, 17), (9, 14), (9, 10), (10, 14), (14, 17).
Question: What is the barycenter of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [2] | graph_barycenter |
The task is to determine the degree centrality of a node in the graph.
The degree centrality values are normalized by dividing by the maximum possible degree in a graph.
Here is a directed graph. In the graph, (u, v) means that there is an edge from node u to node v. The graph contains nodes: 1, and 2. The graph contains edges: (1, 2).
Question: What is the degree centrality of node 2 in the graph?
You need to format your answer as a float number. | 1.0 | graph_degree_centrality |
The task is to determine the effective size of a node in a graph.
The effective size of a node is the number of nodes that are not directly connected to it, but are connected to its neighbors.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, and 18. The graph contains edges: (1, 15), (2, 15), (14, 15), (2, 10), (7, 10), (3, 11), (3, 9), (5, 11), (11, 18), (11, 14), (4, 9), (4, 18), (4, 7), (4, 17), (6, 14), (6, 12), (6, 13), (6, 16), (6, 8), (8, 12), (12, 13), (12, 16), (13, 16).
Question: What is the effective size of node 7 in the graph?
You need to format your answer as a float number. | 2.0 | graph_effective_size |
The task is to determine the density of the graph.
Density is defined as the ratio of the number of edges in the graph to the number of possible edges. For undirected graphs, the density is 2*m/(n*(n-1)), where m is the edge number and n is the node number. For directed graphs, the density is m/(n*(n-1)).
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, and 33. The graph contains edges: (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (1, 8), (1, 9), (1, 10), (2, 3), (2, 4), (2, 5), (2, 6), (2, 7), (3, 5), (3, 6), (3, 10), (3, 11), (3, 12), (4, 5), (4, 6), (4, 7), (5, 6), (5, 7), (5, 13), (5, 14), (5, 15), (6, 7), (6, 13), (6, 14), (8, 16), (8, 18), (8, 17), (8, 9), (9, 17), (9, 10), (10, 11), (7, 14), (11, 24), (12, 24), (12, 25), (13, 14), (13, 15), (13, 30), (14, 15), (14, 31), (15, 30), (15, 31), (15, 32), (16, 18), (16, 17), (17, 18), (19, 24), (21, 24), (22, 24), (24, 25), (19, 25), (22, 25), (28, 30), (30, 31), (30, 32), (28, 31), (31, 32), (28, 32), (19, 20), (19, 21), (19, 22), (20, 21), (20, 22), (20, 23), (21, 26), (21, 23), (26, 27), (28, 29), (29, 33).
Question: What is the density of the graph?
You need to format your answer as a float number. | 0.14015151515151514 | graph_density |
The task is to determine the closeness centrality of a node in the graph.
For a node u, closeness centrality is the reciprocal of the average shortest path distance to u over all n-1 reachable nodes. For directed graphs, it computes the incoming distance to u.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, and 8. The graph contains edges: (1, 5), (1, 2), (1, 4), (1, 6), (2, 5), (3, 5), (4, 5), (5, 7), (5, 6), (5, 8), (2, 7), (2, 4), (2, 6), (3, 4), (4, 7), (4, 6), (6, 7), (6, 8), (7, 8).
Question: What is the closeness centrality of node 7 in the graph?
You need to format your answer as a float number. | 0.7777777777777778 | graph_closeness_centrality |
The task is to determine the transitivity of a graph.
Transitivity is the ratio of the number of triangles in the graph to the number of connected triples of nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, and 21. The graph contains edges: (1, 2), (1, 3), (1, 4), (2, 3), (2, 5), (2, 4), (3, 12), (3, 5), (3, 4), (3, 15), (4, 12), (4, 5), (4, 15), (5, 12), (5, 15), (12, 15), (6, 19), (17, 19), (19, 20), (7, 8), (7, 9), (8, 9), (10, 11), (11, 13), (11, 14), (13, 14), (14, 16), (17, 18), (17, 20), (18, 21), (20, 21).
Question: What is the transitivity of the graph?
You need to format your answer as a float number. | 0.6951219512195121 | graph_transitivity |
The task is to determine the transitivity of a graph.
Transitivity is the ratio of the number of triangles in the graph to the number of connected triples of nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, and 13. The graph contains edges: (1, 12), (9, 12), (2, 6), (3, 6), (6, 11), (6, 8), (4, 13), (4, 11), (4, 8), (4, 9), (5, 13), (5, 11), (9, 11), (5, 8), (7, 8), (8, 9), (9, 10).
Question: What is the transitivity of the graph?
You need to format your answer as a float number. | 0.13953488372093023 | graph_transitivity |
The task is to determine the barycenter of a graph.
The barycenter of a graph is also called the median. It includes the node that minimizes the sum of distances to all other nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, and 24. The graph contains edges: (1, 16), (1, 14), (10, 16), (16, 24), (6, 14), (13, 14), (14, 24), (14, 17), (2, 6), (6, 24), (6, 11), (6, 10), (3, 19), (3, 17), (4, 19), (12, 19), (11, 17), (5, 15), (13, 15), (7, 24), (11, 23), (11, 18), (11, 13), (10, 13), (7, 21), (18, 21), (8, 23), (8, 18), (20, 23), (9, 22), (9, 13), (20, 22), (12, 13).
Question: What is the barycenter of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [13] | graph_barycenter |
The task is to determine the diameter of a graph.
The diameter of a graph is the longest shortest path between any two nodes in the graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, and 28. The graph contains edges: (1, 2), (1, 3), (1, 4), (1, 5), (2, 4), (2, 7), (2, 6), (2, 8), (3, 4), (3, 9), (3, 10), (3, 11), (4, 9), (4, 12), (4, 7), (5, 24), (5, 26), (5, 11), (6, 7), (7, 9), (7, 12), (6, 13), (6, 8), (8, 16), (8, 13), (8, 14), (9, 12), (10, 17), (10, 20), (10, 11), (11, 26), (12, 27), (22, 24), (24, 26), (13, 16), (13, 14), (14, 16), (15, 16), (14, 25), (17, 18), (21, 25), (23, 25), (18, 19), (19, 28), (21, 23).
Question: What is the diameter of the graph?
| 11 | graph_diameter |
The task is to determine the transitivity of a graph.
Transitivity is the ratio of the number of triangles in the graph to the number of connected triples of nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, and 25. The graph contains edges: (1, 2), (1, 3), (2, 10), (2, 11), (2, 13), (3, 23), (3, 24), (10, 11), (11, 12), (19, 23), (23, 24), (19, 24), (4, 5), (5, 7), (5, 8), (5, 9), (6, 7), (7, 8), (8, 9), (8, 15), (9, 15), (15, 16), (12, 18), (18, 22), (14, 22), (21, 22), (16, 17), (20, 25), (20, 21).
Question: What is the transitivity of the graph?
You need to format your answer as a float number. | 0.36 | graph_transitivity |
The task is to determine the Adamic-Adar index of two nodes in a graph.
The Adamic-Adar index is the sum of the inverse logarithm of the degrees of the common neighbors of the two nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, and 28. The graph contains edges: (1, 10), (1, 19), (1, 2), (1, 7), (10, 13), (6, 19), (19, 22), (19, 21), (2, 3), (2, 16), (7, 25), (7, 18), (3, 9), (3, 5), (3, 12), (4, 16), (9, 12), (9, 14), (5, 27), (12, 28), (4, 26), (4, 15), (23, 26), (8, 15), (15, 22), (15, 17), (25, 28), (18, 20), (8, 20), (14, 24), (11, 17), (17, 21), (21, 24).
Question: What is the Adamic-Adar index between node 9 and node 27?
You need to format your answer as a float number. | 0 | graph_adamic_adar_index |
The task is to determine the Adamic-Adar index of two nodes in a graph.
The Adamic-Adar index is the sum of the inverse logarithm of the degrees of the common neighbors of the two nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, and 21. The graph contains edges: (1, 15), (1, 3), (1, 4), (3, 15), (4, 15), (3, 10), (3, 4), (2, 17), (2, 9), (9, 21), (9, 14), (9, 18), (10, 11), (5, 13), (5, 18), (13, 16), (13, 18), (16, 18), (6, 8), (8, 20), (7, 19), (12, 20), (14, 21), (11, 12).
Question: What is the Adamic-Adar index between node 9 and node 19?
You need to format your answer as a float number. | 0 | graph_adamic_adar_index |
The task is to determine if the directed graph is strongly connected.
A directed graph is strongly connected if there is a directed path between every pair of vertices.
Here is a directed graph. In the graph, (u, v) means that there is an edge from node u to node v. The graph contains nodes: 1, 2, 3, 4, and 5. The graph contains edges: (1, 4), (1, 3), (4, 1), (4, 2), (4, 5), (3, 1), (3, 2), (3, 5), (2, 4), (2, 3), (5, 4), (5, 3).
Question: Is the directed graph strongly connected?
Your answer should be Yes or No. | Yes | graph_is_strongly_connected |
The task is to determine the number of isolated nodes in the graph.
An isolated node is a node that has no edges connecting it to any other nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, and 29. The graph contains edges: (1, 24), (1, 10), (10, 24), (22, 24), (2, 27), (2, 28), (2, 3), (2, 4), (2, 5), (25, 27), (26, 27), (27, 28), (26, 28), (3, 4), (3, 5), (4, 5), (6, 9), (6, 23), (6, 20), (9, 23), (9, 20), (20, 23), (19, 20), (20, 21), (7, 11), (7, 8), (7, 29), (8, 11), (8, 29), (18, 29), (12, 21), (12, 19), (12, 14), (12, 13), (19, 21), (14, 19), (13, 14), (15, 17), (15, 22), (16, 17), (25, 26).
Question: How many isolated nodes are there in the graph?
| 0 | graph_isolate_number |
The task is to determine the breadth-first search (BFS) traversal order given a starting node.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, and 20. The graph contains edges: (1, 9), (7, 9), (8, 9), (2, 7), (2, 16), (7, 11), (3, 4), (4, 19), (4, 6), (18, 19), (6, 17), (6, 13), (6, 12), (5, 15), (5, 14), (15, 20), (17, 18), (10, 20).
Question: What is the breadth-first search (BFS) traversal order for the starting node 7?
You need to format your answer as a list of edges in ascending dictionary order, e.g., [(u1, v1), (u2, v2), ..., (un, vn)]. | [(7,2),(7,9),(7,11),(2,16),(9,1),(9,8)] | graph_bfs |
The task is to determine common neighbors between two nodes in the graph.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, and 22. The graph contains edges: (1, 13), (1, 14), (13, 17), (13, 15), (14, 21), (2, 10), (2, 19), (2, 6), (2, 5), (2, 12), (6, 10), (10, 19), (10, 12), (6, 12), (3, 5), (4, 5), (5, 9), (5, 12), (9, 12), (3, 9), (3, 4), (4, 9), (7, 8), (7, 21), (8, 20), (8, 21), (11, 18), (11, 22), (18, 22), (16, 22), (15, 17).
Question: What are the common neighbors between node 11 and node 18?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [22] | graph_common_neighbor |
The task is to determine if the graph has a cycle.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, and 19. The graph contains edges: (1, 2), (1, 3), (4, 5), (5, 6), (6, 7), (7, 8), (8, 9), (10, 11), (10, 12), (12, 13), (13, 14), (14, 15), (15, 16), (17, 18), (18, 19).
Question: Does the graph have a cycle?
Your answer should be Yes or No. | No | graph_has_cycle |
The task is to determine the betweenness centrality of a node in the graph.
Betweenness centrality of a node u is the sum of the fraction of all-pairs shortest paths that pass through u.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and 12. The graph contains edges: (1, 4), (3, 4), (4, 9), (2, 6), (2, 10), (2, 5), (3, 10), (7, 10), (3, 5), (9, 11), (7, 8), (11, 12).
Question: What is the betweenness centrality of node 9 in the graph?
You need to format your answer as a float number. | 0.32727272727272727 | graph_betweenness_centrality |
The task is to determine the closeness centrality of a node in the graph.
For a node u, closeness centrality is the reciprocal of the average shortest path distance to u over all n-1 reachable nodes. For directed graphs, it computes the incoming distance to u.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, and 13. The graph contains edges: (1, 9), (1, 2), (2, 9), (2, 5), (5, 10), (3, 4), (4, 11), (4, 13), (10, 11), (6, 12), (7, 12), (8, 12).
Question: What is the closeness centrality of node 12 in the graph?
You need to format your answer as a float number. | 0.25 | graph_closeness_centrality |
The task is to determine the barycenter of a graph.
The barycenter of a graph is also called the median. It includes the node that minimizes the sum of distances to all other nodes.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, and 30. The graph contains edges: (1, 18), (1, 13), (2, 18), (13, 18), (18, 21), (2, 9), (2, 15), (2, 11), (9, 11), (3, 15), (11, 27), (11, 20), (11, 19), (3, 17), (10, 17), (4, 28), (4, 5), (22, 28), (5, 10), (5, 23), (5, 16), (10, 25), (16, 23), (6, 24), (6, 12), (6, 7), (7, 24), (7, 12), (7, 29), (7, 26), (20, 29), (26, 29), (8, 30), (8, 14), (14, 30), (14, 20), (25, 27), (19, 27), (21, 22).
Question: What is the barycenter of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [11] | graph_barycenter |
The task is to determine the constraint of a node in a graph.
The constraint of a node is a measure of how much the node is constrained by its neighbors.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, and 30. The graph contains edges: (1, 3), (3, 25), (3, 15), (3, 18), (3, 16), (2, 10), (2, 4), (2, 5), (2, 14), (9, 10), (10, 14), (4, 5), (4, 24), (5, 13), (5, 17), (5, 14), (5, 24), (9, 14), (13, 14), (14, 17), (20, 25), (15, 30), (15, 18), (15, 16), (16, 18), (23, 24), (12, 13), (13, 17), (6, 7), (6, 8), (6, 9), (7, 11), (7, 9), (8, 11), (8, 12), (9, 11), (11, 12), (19, 30), (21, 30), (22, 30), (21, 22), (26, 27), (26, 28), (27, 28), (27, 29), (28, 29).
Question: What is the constraint of node 8 in the graph?
You need to format your answer as a float number. | 0.482253086419753 | graph_constraint |
The task is to determine the minimum vertex cover of a graph.
A vertex cover is a set of nodes such that every edge in the graph is incident to at least one node in the set.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, and 20. The graph contains edges: (1, 10), (6, 10), (2, 13), (2, 6), (2, 11), (4, 13), (13, 17), (6, 8), (8, 11), (9, 11), (11, 20), (11, 19), (3, 18), (3, 20), (3, 16), (17, 18), (18, 19), (16, 20), (4, 9), (4, 5), (5, 15), (7, 15), (8, 15), (12, 15), (7, 12), (14, 19).
Question: What is the minimum vertex cover of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20] | graph_min_vertex_cover |
The task is to determine the minimum vertex cover of a graph.
A vertex cover is a set of nodes such that every edge in the graph is incident to at least one node in the set.
Here is an undirected graph. In the graph, (u, v) means that node u and node v are connected. The graph contains nodes: 1, 2, 3, 4, 5, 6, 7, 8, 9, and 10. The graph contains edges: (1, 5), (5, 10), (5, 7), (2, 9), (3, 9), (4, 8), (8, 10), (6, 10).
Question: What is the minimum vertex cover of the graph?
You need to format your answer as a list of nodes in ascending order, e.g., [node-1, node-2, ..., node-n]. | [1,2,4,5,6,8,9] | graph_min_vertex_cover |
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 56