|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectHypergraph
public class Hypergraph
This class represents Hypergraph objects.
Constructor Summary | |
---|---|
Hypergraph(int numHyperNodes)
Create a Hypergraph. |
|
Hypergraph(List leafNodes)
Create a Hypergraph from a List of DtreeNodeLeafs. |
|
Hypergraph(Map edgeToColNodes,
int numHyperNodes)
Create a Hypergraph. |
Method Summary | |
---|---|
static Hypergraph |
createFromIL2Indexes(List leafNodes)
|
Collection |
edgeSet()
|
Integer |
getWeight(Object edge)
|
Collection |
hyperNodes()
|
boolean |
isWeighted()
|
Collection |
nodeSet(Object edge)
|
int |
numEdges()
|
int |
numNodes()
|
void |
putHyperedge(Object edge,
Collection col)
|
void |
setEdgeWeight(Object edge,
Integer wt)
Sets the weight of the edge to wt. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Hypergraph(List leafNodes)
public Hypergraph(Map edgeToColNodes, int numHyperNodes)
edgeToColNodes
- A Map from each hyperedge (FiniteVariable) to a
Collection of hypernodes (represented as
Integers from 0..numNodes-1).numHyperNodes
- The number of HyperNodes in the graph, it must be
one or larger (once set, this cannot be changed).public Hypergraph(int numHyperNodes)
numHyperNodes
- The number of HyperNodes in the graph, it must be
one or larger (once set, this cannot be changed).Method Detail |
---|
public static Hypergraph createFromIL2Indexes(List leafNodes)
public void setEdgeWeight(Object edge, Integer wt)
public int numNodes()
public int numEdges()
public Collection edgeSet()
public Collection nodeSet(Object edge)
public boolean isWeighted()
public Integer getWeight(Object edge)
public Collection hyperNodes()
public void putHyperedge(Object edge, Collection col)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |