All Implemented Interfaces:
StructureConstraints

public class DAG extends AbstractStructureConstraints
Defines the restrictions of a general directed acyclic graph.
  • Constructor Details

    • DAG

      public DAG()
  • Method Details

    • isStructureLegal

      public boolean isStructureLegal(boolean[][] adjacencyMatrix, NodeIndexer<? extends Node> nodeIndexer)
      Checks if the structure (given by an adjacencyMatrix) is legal for a Bayesian network without restrictions. The method determines if there are cycles in an adjacency matrix.
      Parameters:
      adjacencyMatrix - adjacency matrix
      nodeIndexer - node indexer that allows access to information about the nodes
      Returns:
      true if the structure is valid, false otherwise
      See Also: