|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object salvo.jesus.graph.VertexImpl edu.ksu.cis.kdd.util.graph.Node edu.ksu.cis.kdd.util.graph.Clique
Field Summary | |
protected java.util.HashSet |
baseNodes
|
protected java.util.HashSet |
r
|
protected java.util.HashSet |
s
|
protected java.util.HashSet |
set
|
Fields inherited from class edu.ksu.cis.kdd.util.graph.Node |
name, owner, property |
Fields inherited from class salvo.jesus.graph.VertexImpl |
object |
Constructor Summary | |
Clique()
|
|
Clique(Graph owner)
|
|
Clique(Graph owner,
java.util.Collection c)
|
Method Summary | |
void |
add(Node n)
Add a node to this clique. |
void |
addAll(java.util.Collection c)
Add all nodes contained in the collection c. |
void |
addBaseNode(Node n)
|
void |
addBaseNodes(java.util.Collection n)
|
void |
clear()
Empties the clique |
boolean |
contains(Node n)
Whether or not the node in this clique |
boolean |
containsAll(java.util.Collection c)
Whether or not all of the nodes in the collection c are in this clique |
java.util.Set |
difference(Clique c)
|
java.util.Set |
difference(java.util.Set c)
|
boolean |
equals(java.lang.Object o)
Standard equality test: Two cliques are equal if their node set are equal. |
java.util.Set |
getBaseNodes()
|
java.lang.String |
getLabel()
|
java.lang.String |
getName()
Get the node name |
java.util.Set |
getNodeSet()
|
java.util.Set |
getR()
|
java.util.Set |
getS()
|
int |
hashCode()
Standard Hash Code. |
java.util.Set |
intersect(Clique c)
|
java.util.Set |
intersect(java.util.Set c)
|
boolean |
isEmpty()
Whether or not the clique is empty |
java.util.Iterator |
iterator()
Giving standard iterator of the clique |
void |
remove(Node n)
Remove a node from this clique |
void |
setS(java.util.HashSet s)
Sets the s. |
int |
size()
The number of nodes the clique has |
Node[] |
toArray()
Give the nodes in an array |
Methods inherited from class edu.ksu.cis.kdd.util.graph.Node |
getAncestors, getChildren, getChildrenNames, getDescendants, getOwner, getParentNames, getParents, getProperty, getProperty, putProperty, removeProperty, setName, setOwner, setProperty, toString |
Methods inherited from class salvo.jesus.graph.VertexImpl |
getObject, hasLabel, setLabel, setObject |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.util.HashSet set
protected java.util.HashSet s
protected java.util.HashSet r
protected java.util.HashSet baseNodes
Constructor Detail |
public Clique(Graph owner)
owner
- public Clique(Graph owner, java.util.Collection c)
owner
- public Clique()
Method Detail |
public java.lang.String getName()
Node
getName
in class Node
public java.lang.String getLabel()
getLabel
in interface salvo.jesus.graph.LabeledGraphComponent
getLabel
in class Node
public java.util.Set getR()
public java.util.Set getS()
public void setS(java.util.HashSet s)
s
- The S to setpublic java.util.Set getNodeSet()
public void addBaseNode(Node n)
public void addBaseNodes(java.util.Collection n)
public java.util.Set getBaseNodes()
public java.util.Set intersect(Clique c)
public java.util.Set intersect(java.util.Set c)
public java.util.Set difference(Clique c)
public java.util.Set difference(java.util.Set c)
public void remove(Node n)
n
- The node to be removedpublic void add(Node n)
n
- The node to removepublic void addAll(java.util.Collection c)
c
- public int size()
public boolean contains(Node n)
n
-
public boolean containsAll(java.util.Collection c)
c
-
public java.util.Iterator iterator()
public boolean isEmpty()
public Node[] toArray()
public void clear()
public int hashCode()
hashCode
in class Node
Object.hashCode()
public boolean equals(java.lang.Object o)
equals
in class Node
Object.equals(Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |