@TestClass(value="BondEquitablePartitionRefinerTest") public class BondEquitablePartitionRefiner extends AbstractEquitablePartitionRefiner implements IEquitablePartitionRefiner
BondDiscretePartitionRefiner
.AbstractEquitablePartitionRefiner.SplitOrder
Constructor and Description |
---|
BondEquitablePartitionRefiner(BondDiscretePartitionRefiner discreteRefiner)
Make an equitable partition refiner using the supplied connection table.
|
Modifier and Type | Method and Description |
---|---|
int |
getVertexCount()
Gets from the graph the number of vertices.
|
int |
neighboursInBlock(Set<Integer> block,
int bondIndex)
Find |a ∩ b| - that is, the size of the intersection between a and b.
|
refine, setSplitOrder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
refine
@TestMethod(value="constructorTest") public BondEquitablePartitionRefiner(BondDiscretePartitionRefiner discreteRefiner)
discreteRefiner
- the connections between vertices@TestMethod(value="neighboursInBlockTest") public int neighboursInBlock(Set<Integer> block, int bondIndex)
AbstractEquitablePartitionRefiner
neighboursInBlock
in class AbstractEquitablePartitionRefiner
block
- a set of numbersbondIndex
- the element to compare@TestMethod(value="getVertexCountTest") public int getVertexCount()
AbstractEquitablePartitionRefiner
getVertexCount
in class AbstractEquitablePartitionRefiner
Copyright © 2014. All Rights Reserved.