Module es.upm.fi.cig.multictbnc
Class Digraph
java.lang.Object
es.upm.fi.cig.multictbnc.learning.structure.constraints.AbstractStructureConstraints
es.upm.fi.cig.multictbnc.learning.structure.constraints.CTBNC.Digraph
- All Implemented Interfaces:
StructureConstraints
Specifies the structure restrictions of a CTBN.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isStructureLegal
(boolean[][] adjacencyMatrix, NodeIndexer<? extends Node> nodeIndexer) Determines if the structure of a PGM is legal.Methods inherited from class es.upm.fi.cig.multictbnc.learning.structure.constraints.AbstractStructureConstraints
initialiseStructure, uniqueStructure
-
Constructor Details
-
Digraph
public Digraph()
-
-
Method Details
-
isStructureLegal
public boolean isStructureLegal(boolean[][] adjacencyMatrix, NodeIndexer<? extends Node> nodeIndexer) Description copied from interface:StructureConstraints
Determines if the structure of a PGM is legal.- Parameters:
adjacencyMatrix
- adjacency matrixnodeIndexer
- node indexer that allows access to information about the nodes- Returns:
- true if the structure is legal, false otherwise
-