Graph Analysis: {{ title }}

Generated {{ generated_at }}  ·  {{ stats.num_entities }} entities  ·  {{ stats.num_relations }} relations
Overview
{{ stats.num_entities }}
Entities
{{ stats.num_relations }}
Relations
{{ stats.num_communities }}
Clusters
{{ stats.num_chunks }}
Chunks
{{ stats.avg_degree }}
Avg Degree
{{ stats.density }}
Density
{{ stats.n_components }}
Components
{{ stats.largest_cc_pct }}%
Largest Component
Distribution

Entity Types

Relation Types

Most Important Entities (PageRank)

PageRank measures global importance — entities that are referenced by many other highly-connected entities score highest.

{% for e in top_by_pagerank %} {% endfor %}
# Entity Type Score Degree Description
{{ loop.index }} {{ e.name | e }} {{ e.type | e }}
{{ e.score }}
{{ e.degree }} {{ e.description | e }}
Most Connected Entities (Degree)

Degree is the total number of edges (in + out). Highly connected entities are hubs in the knowledge graph.

{% set max_deg = (top_by_degree | map(attribute='degree') | list | max) if top_by_degree else 1 %} {% for e in top_by_degree %} {% endfor %}
# Entity Type Degree Description
{{ loop.index }} {{ e.name | e }} {{ e.type | e }}
{{ e.degree }}
{{ e.description | e }}
Bridge Entities (Betweenness Centrality)

Betweenness measures how often an entity lies on the shortest path between two others — these are the connective tissue of the graph.

{% set max_bw = (top_by_betweenness | map(attribute='score') | list | max) if top_by_betweenness else 1 %} {% for e in top_by_betweenness %} {% endfor %}
# Entity Type Betweenness Degree Description
{{ loop.index }} {{ e.name | e }} {{ e.type | e }}
{{ e.score }}
{{ e.degree }} {{ e.description | e }}
{% if top_chunks %}
Most Referenced Chunks

Chunks are ranked by how many entities and relations were extracted from them — the densest information sources.

{% set max_ref = (top_chunks | map(attribute='references') | list | max) if top_chunks else 1 %} {% for c in top_chunks %} {% endfor %}
# Chunk References Preview
{{ loop.index }} {% if c.chunk_idx is not none %} Part {{ c.chunk_idx + 1 }} {% else %} {{ c.id[:8] }}… {% endif %}
{{ c.references }}
{{ c.preview | e }}
{% endif %} {% if communities %}
Clusters
{% for c in communities[:9] %}
Cluster {{ c.id }} {{ c.size }}
{% if c.topics %}
{% for t in c.topics %}{{ t | e }}{% endfor %}
{% endif %} {% if c.description %}
{{ c.description | e }}
{% endif %}
{{ c.members | map('e') | join(', ') }}{% if c.size > 12 %} …{% endif %}
{% endfor %}
{% endif %}