Classes
GraphReporter
Generates reports and insights from knowledge graph analysis.
Provides methods for:
- Formatted st…
GraphReporter
Generates reports and insights from knowledge graph analysis.
Provides methods for:
- Formatted statistics output
- Actionable recommendations for site structure
- SEO-focused insights
- Content gap detection
Methods 4
format_stats
Format graph statistics as a human-readable string.
format_stats
def format_stats(self) -> str
Format graph statistics as a human-readable string.
Returns
Formatted statistics stringstr
—
get_actionable_recommendations
Generate actionable recommendations for improving site structure.
get_actionable_recommendations
def get_actionable_recommendations(self) -> list[str]
Generate actionable recommendations for improving site structure.
Returns
List of recommendation strings with emoji prefixeslist[str]
—
get_seo_insights
Generate SEO-focused insights about site structure.
get_seo_insights
def get_seo_insights(self) -> list[str]
Generate SEO-focused insights about site structure.
Returns
List of SEO insight strings with emoji prefixeslist[str]
—
get_content_gaps
Identify content gaps based on link structure and taxonomies.
get_content_gaps
def get_content_gaps(self) -> list[str]
Identify content gaps based on link structure and taxonomies.
Returns
List of content gap descriptionslist[str]
—
Internal Methods 3
__init__
Initialize the graph reporter.
__init__
def __init__(self, graph: KnowledgeGraph) -> None
Initialize the graph reporter.
Parameters 1
graph |
KnowledgeGraph |
Knowledge graph to report on (must be built) |
_ensure_built
Verify the graph has been built before reporting.
_ensure_built
def _ensure_built(self) -> None
Verify the graph has been built before reporting.
_find_homepage
Find the homepage from a list of pages.
_find_homepage
def _find_homepage(self, analysis_pages: list[Page]) -> Page | None
Find the homepage from a list of pages.
Parameters 1
analysis_pages |
list[Page] |
Returns
Page | None