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).
... | 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 ... | 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 ... | [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, ... | 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, ... | 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, 1... | [(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... | [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),... | [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... | [(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,... | 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, 1... | 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,... | 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, ... | 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... | [(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: Wh... | [(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... | 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,... | 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, ... | 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... | 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... | 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, 1... | 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,... | [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,... | 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,... | 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,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,... | 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, ... | 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,... | 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... | 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), (... | [(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... | [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,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,... | 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 nod... | 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, ... | 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,... | [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, ... | 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 conta... | [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, 1... | [(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 ... | 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, ... | 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... | 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 ... | 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, a... | [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,... | [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 ... | 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,... | [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... | 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, an... | 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 c... | 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, 1... | [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 | 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:... | 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. T... | 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 u... | 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 1... | [(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... | [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... | 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,... | 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, ... | [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... | 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... | 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 ... | 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... | -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, ... | 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, ... | 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. T... | 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)... | [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... | 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 ... | 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... | 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,... | 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 ... | 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... | -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),... | 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 an... | [(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, ... | 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,... | [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 conta... | 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, ... | 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 u... | 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 tha... | 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,... | 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,... | 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,... | [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, 1... | 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,... | 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, ... | 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, ... | 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 gra... | 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, 1... | 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,... | [(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)... | [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,... | 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, ... | 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 tha... | 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,... | [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... | 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... | [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... | [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
- 4