Command

bengal.graph.bridges

🌉 Identify bridge pages and navigation bottlenecks.

Analyzes navigation paths to find:

  • Bridge pages (high betweenness): Pages that connect different parts of the site
  • Accessible pages (high closeness): Pages easy to reach from anywhere
  • Navigation bottlenecks: Critical pages for site navigation

Use path analysis to:

  • Optimize navigation structure
  • Identify critical pages
  • Improve content discoverability
  • Find navigation gaps

Usage

bengal.graph.bridges [OPTIONS]

Options

Option Type Description
--config PATH

Path to config file (default: bengal.toml)

--format, -f CHOICE

Output format (default: table)

Default:table
--metric, -m CHOICE

Centrality metric to display (default: both)

Default:both
--top-n, -n INTEGER

Number of pages to show (default: 20)

Default:20

Arguments

Argument Type Description
source PATH Default:.

Examples

    # Show top 20 bridge pages
    bengal bridges
    # Show most accessible pages
    bengal bridges --metric closeness
    # Show only betweenness centrality
    bengal bridges --metric betweenness
    # Export as JSON
    bengal bridges --format json > bridges.json