# {{ graph.name }} - Knowledge Base Summary

**Version:** {{ graph.version }}
{% if graph.description -%}
**Description:** {{ graph.description }}
{% endif -%}
**Generated:** {{ timestamp }}
**Total Nodes:** {{ stats.total_nodes }}
**Total Edges:** {{ stats.total_edges }}

## Statistics

### Nodes by Type
{% for type, count in stats.nodes_by_type %}
- **{{ type | title }}:** {{ count }}
{% endfor %}

### Nodes by Status
{% for status, count in stats.nodes_by_status %}
- **{{ status | title }}:** {{ count }}
{% endfor %}

{% if stats.top_tags and stats.top_tags | length > 0 %}
### Top Tags
{% for tag, count in stats.top_tags %}
- **{{ tag }}:** {{ count }} nodes
{% endfor %}
{% endif %}

{% if nodes and nodes | length > 0 %}
## Nodes

{% for node in nodes %}
### {{ node.title }}

**Type:** {{ node.type | title }}
**Status:** {{ node.status | title }}
**Created:** {{ node.created | date(format="%Y-%m-%d %H:%M") }}
**Modified:** {{ node.modified | date(format="%Y-%m-%d %H:%M") }}
{% if node.tags and node.tags | length > 0 -%}
**Tags:** {% for tag in node.tags %}{{ tag }}{% if not loop.last %}, {% endif %}{% endfor %}
{% endif -%}

{{ node.content | truncate(length=200) }}

{% if node.relates_to and node.relates_to | length > 0 -%}
**Related:** {% for rel in node.relates_to %}{{ rel }}{% if not loop.last %}, {% endif %}{% endfor %}
{% endif %}

---

{% endfor %}
{% endif %}

{% if graph.metadata and graph.metadata.notes %}
## Notes

{{ graph.metadata.notes }}
{% endif %}
