Function checkCoherence

  • Checks for complete coherence in the architecture, ensuring all nodes are properly connected according to the defined rules.

    Parameters

    • graph: ProjectedGraph

      The projected graph to check

    • allowed: Rule[]

      List of allowed rules

    • nodes: string[]

      List of nodes that should be checked for coherence

    • options: CoherenceOptions = {}

      Configuration options for coherence checking

    Returns ViolatingEdge[]

    List of violations where coherence rules are broken