Modifier and Type | Field and Description |
---|---|
static Comparator<com.soteradefense.dga.hbse.HighBetweennessList.BcTuple> |
comparator
BcTuple Comparator
Used to order based on value.
|
Constructor and Description |
---|
HighBetweennessList()
Creates a new HighBetweennessList with Max size 1.
|
HighBetweennessList(int maxSize)
Creates a new HighBetweennessList with a Custom MaxSize
|
HighBetweennessList(int maxSize,
String id,
double value)
Creates a new HighBetweennessList with a custom size and initial value.
|
HighBetweennessList(String id,
double value)
Creates a new HighBetweennessList with maxSize 1 and Adds a Value.
|
Modifier and Type | Method and Description |
---|---|
void |
aggregate(HighBetweennessList other)
Add items from other to this.
|
Set<String> |
getHighBetweennessSet() |
int |
getMaxSize() |
PriorityQueue<com.soteradefense.dga.hbse.HighBetweennessList.BcTuple> |
getQueue() |
void |
readFields(DataInput in)
Read fields
|
void |
setMaxSize(int maxSize)
Set the maxSize of this list
|
String |
toString()
Return a string representation of the list.
|
void |
write(DataOutput out)
Write fields
|
public static Comparator<com.soteradefense.dga.hbse.HighBetweennessList.BcTuple> comparator
public HighBetweennessList()
public HighBetweennessList(int maxSize)
maxSize
- The maximum size of the priority queue.public HighBetweennessList(String id, double value)
id
- Vertex Idvalue
- Betweenness Valuepublic HighBetweennessList(int maxSize, String id, double value)
maxSize
- The maximum size of the priority queue.id
- Vertex Idvalue
- Betweenness Valuepublic void aggregate(HighBetweennessList other)
other
- Another Highbetweenness set.public Set<String> getHighBetweennessSet()
public void write(DataOutput out) throws IOException
write
in interface Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface Writable
IOException
public PriorityQueue<com.soteradefense.dga.hbse.HighBetweennessList.BcTuple> getQueue()
public String toString()
public int getMaxSize()
public void setMaxSize(int maxSize)
maxSize
- The maximum size of the priority queue.