Skip to content

Learning Graph Quality Metrics Report

Overview

  • Total Concepts: 85
  • Foundational Concepts (no prerequisites, other concepts depend on them): 6
  • Terminal Nodes (nothing depends on them, but have prerequisites): 35
  • Orphaned Nodes (completely disconnected, no edges): 1
  • Concepts with Dependencies: 78
  • Average Dependencies per Concept: 1.50

Graph Structure Validation

  • Valid DAG Structure: ✅ Yes
  • Self-Dependencies: None detected ✅
  • Cycles Detected: 0

Foundational Concepts

These concepts have no prerequisites:

  • 1: OAuth 2.0 Basics
  • 2: OAuth 1.0a Basics
  • 5: Pydantic Models
  • 7: Python Protocols
  • 8: Context Managers
  • 9: File Permissions

Dependency Chain Analysis

  • Maximum Dependency Chain Length: 8

Longest Learning Path:

  1. Pydantic Models (ID: 5)
  2. Frozen Models (ID: 6)
  3. AuthSpec Base Model (ID: 11)
  4. Discriminated Union (ID: 12)
  5. Auth Dispatch Registry (ID: 27)
  6. Type Based Dispatch (ID: 30)
  7. Auth To Driver Kwargs (ID: 28)
  8. Auth Kwargs Function (ID: 29)

Terminal Nodes Analysis

Terminal nodes are concepts that nothing else depends on but have prerequisites. They represent natural endpoints of learning paths — culminating or specialized concepts.

  • Total Terminal Nodes: 35 (41.2% of all concepts)
  • Healthy Range: 5-40% of total concepts

Concepts at the end of learning paths:

  • 14: NoAuth Type
  • 15: PasswordAuth Type
  • 16: TokenAuth Type
  • 17: JWTAuth Type
  • 18: OAuth2Auth Type
  • 19: OAuth2AuthCodeAuth Type
  • 20: OAuth1Auth Type
  • 21: IAMAuth Type
  • 29: Auth Kwargs Function
  • 32: Backend Specific Handling
  • 37: Code Challenge
  • 44: End To End Authorize
  • 48: Verifier Exchange
  • 50: Optional Import Guard
  • 52: Connect Method
  • 54: Client Property
  • 55: Context Manager Support
  • 56: Profile Parameter
  • 58: No Token State
  • 59: Valid Token State

...and 15 more

Orphaned Nodes Analysis

Orphaned nodes are completely disconnected concepts with no inbound AND no outbound edges. These indicate a quality problem — every concept should connect to the graph.

  • Total Orphaned Nodes: 1

⚠️ Completely disconnected concepts:

  • 4: API Keys

Connected Components

  • Number of Connected Components: 2

⚠️ Multiple disconnected subgraphs detected:

Component 1 (84 concepts)

  • OAuth 2.0 Basics
  • OAuth 1.0a Basics
  • Bearer Tokens
  • Pydantic Models
  • Frozen Models
  • Python Protocols
  • Context Managers
  • File Permissions
  • Atomic File Writes
  • AuthSpec Base Model
  • ...and 74 more

Component 2 (1 concepts)

  • API Keys

Indegree Analysis

Top 10 concepts that are prerequisites for the most other concepts:

Rank Concept ID Concept Label Indegree
1 12 Discriminated Union 15
2 64 SecretStore Protocol 8
3 33 OAuthFlow Class 7
4 51 OAuth2ConnectionMixin 7
5 1 OAuth 2.0 Basics 5
6 57 Token Lifecycle Overview 5
7 3 Bearer Tokens 4
8 5 Pydantic Models 4
9 2 OAuth 1.0a Basics 3
10 8 Context Managers 3

Outdegree Distribution

Dependencies Number of Concepts
0 7
1 48
2 25
3 3
4 1
6 1

Recommendations

  • ⚠️ Connect disconnected components: Add dependencies to link separate subgraphs
  • ⚠️ Orphaned nodes detected (1): These concepts are completely disconnected and must be linked to the graph
  • ℹ️ High terminal node percentage (41.2%): Consider if some terminal concepts should be prerequisites for advanced concepts
  • ✅ DAG structure verified: Graph supports valid learning progressions

Report generated by learning-graph-reports/analyze_graph.py