num_tokens
: Total number of tokens in the input text.num_nodes
: Total number of nodes (entities) in the knowledge graph.num_edges
: Total number of edges (relationships) connecting nodes.mean_degree
: Average number of edges per node.edge_density
: Ratio of existing edges to the maximum possible edges, measuring graph sparsity.num_connected_components
: Number of connected components; higher values may indicate fragmentation.sizes_of_connected_components
: Number of nodes in each connected component.num_selfloops
: Number of self-loops (nodes connected to themselves); may indicate errors.diameter
: The longest shortest path between any two nodes in the graph.avg_shortest_path_length
: The average shortest path between all node pairs, indicating graph efficiency.avg_clustering
: Average clustering coefficient, measuring the likelihood of nodes forming tightly connected groups.Too dense | Correct | Too sparse | |
---|---|---|---|
Mean degree | 49 | 3.52 | 1.96 |
Diameter | 1 | 9 | 49 |
![]() | ![]() | ![]() |