Module es.upm.fi.cig.multictbnc
Class DAG
java.lang.Object
es.upm.fi.cig.multictbnc.learning.structure.constraints.AbstractStructureConstraints
es.upm.fi.cig.multictbnc.learning.structure.constraints.BN.DAG
- All Implemented Interfaces:
StructureConstraints
Defines the restrictions of a general directed acyclic graph.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isStructureLegal
(boolean[][] adjacencyMatrix, NodeIndexer<? extends Node> nodeIndexer) Checks if the structure (given by an adjacencyMatrix) is legal for a Bayesian network without restrictions.Methods inherited from class es.upm.fi.cig.multictbnc.learning.structure.constraints.AbstractStructureConstraints
initialiseStructure, uniqueStructure
-
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 matrixnodeIndexer
- node indexer that allows access to information about the nodes- Returns:
- true if the structure is valid, false otherwise
- See Also:
-