📄 clique.java
字号:
package edu.umass.cs.mallet.grmm;import salvo.jesus.graph.Vertex;import java.util.Set;import java.util.Iterator;/** * A clique maintains a set of variables in a specified order. * (Although mathematically, a clique must be fully-connected, * nothing in this datastructure depends on this.) * * @author Charles Sutton * @version $Id: Clique.java,v 1.2 2004/08/13 19:17:37 casutton Exp $ */public interface Clique extends Set, Vertex, Cloneable { /** * Returns the variable in this clique at index idx. * @param idx * @return the variable */ Variable get (int idx); /** * Returns the variables in this clique as a set. This set * should not be modified * @return Set */ Set vertices(); /** * Returns the variables in this clique as an array, that should * not be modified. * @return An array of Variables. */ Variable[] toVariableArray (); /** * Returns the number of assignments of this clique. */ int weight (); /** * Returns an iterator over the assignments to this clique. * Each element in the Iterator is an {@link Assignment} object. * @return An iterator over assignments */ AssignmentIterator assignmentIterator (); /** * Returns the intersection of two cliques. */ Set intersection (Clique c);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -