Skip to main content

validate_graph

Function validate_graph 

Source
pub fn validate_graph(graph: &GraphData) -> ValidationResult
Expand description

Validate a graph for common issues.

Checks for:

  • Orphan nodes (no connections)
  • Self-loops (edge from node to itself)
  • Duplicate edges (same from, to, relationship)
  • Prerequisite cycles
  • Missing canonical references