Module logicng
Class MinFillDTreeGenerator.Graph
- java.lang.Object
-
- org.logicng.knowledgecompilation.dnnf.datastructures.dtree.MinFillDTreeGenerator.Graph
-
- Enclosing class:
- MinFillDTreeGenerator
public static class MinFillDTreeGenerator.Graph extends Object
Undirected Graph
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean[][]adjMatrixThe adjacency matrix (which is symmetric since the graph is undirected)protected List<LNGIntVector>edgeListThe edges of the graph as a list of edges per node ({{2,3},{1},{1}} means that there are the edges 1-2 and 1-3)protected intnumberOfVerticesprotected List<Variable>verticesThe list of vertices
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean[][]getCopyOfAdjMatrix()protected List<LNGIntVector>getCopyOfEdgeList()protected List<Variable>getMinFillOrdering()
-
-
-
Field Detail
-
numberOfVertices
protected final int numberOfVertices
-
adjMatrix
protected final boolean[][] adjMatrix
The adjacency matrix (which is symmetric since the graph is undirected)
-
edgeList
protected final List<LNGIntVector> edgeList
The edges of the graph as a list of edges per node ({{2,3},{1},{1}} means that there are the edges 1-2 and 1-3)
-
-
Constructor Detail
-
Graph
public Graph(Formula cnf)
Computes the DTree from the given CNF.- Parameters:
cnf- the CNF
-
-
Method Detail
-
getCopyOfEdgeList
protected List<LNGIntVector> getCopyOfEdgeList()
-
getCopyOfAdjMatrix
protected boolean[][] getCopyOfAdjMatrix()
-
-