|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbcds.phison.multfailures.ElemsSequencerBase<V,E>
bcds.phison.multfailures.SequencerCC<V,E>
public class SequencerCC<V,E>
This class arranges nodes in descending order of clustering coefficient (CC).
It does not implement
ElemsSequencer.arrangeDirectedLinks(java.util.Random) or
ElemsSequencer.arrangeUndirectedLinks(java.util.Random).
| Constructor Summary | |
|---|---|
SequencerCC()
Default constructor. |
|
SequencerCC(TED<V,E> ted,
Environ env)
Creates a new instance and calls setup to complete the initialization. |
|
| Method Summary | ||
|---|---|---|
java.util.List<V> |
arrangeNodes(java.util.Random rnd)
Returns all nodes of the graph sorted by their clustering coefficient in descending order. |
|
static
|
groupNodesByCC(java.util.Map<V,java.lang.Long> cc_nodes)
Groups by the nodes clustering coefficient (the value is previously trunked). |
|
| Methods inherited from class bcds.phison.multfailures.ElemsSequencerBase |
|---|
arrangeDirectedLinks, arrangeUndirectedLinks, getEnviron, getEnvParams, getName, setup |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequencerCC()
public SequencerCC(TED<V,E> ted,
Environ env)
| Method Detail |
|---|
public java.util.List<V> arrangeNodes(java.util.Random rnd)
rnd is not null,
nodes of the same clustering coefficient are "shuffled" randomly, so that
successive calls will return different results, but always
observing that CC(v_j) >= CC(v_k) for all
j,k in [0..N), j < k. If rnd is null,
nodes are sorted within their respective group by their "natural" order.
arrangeNodes in interface ElemsSequencer<V,E>arrangeNodes in class ElemsSequencerBase<V,E>public static <V,E> java.util.SortedMap<java.lang.Long,java.util.List<V>> groupNodesByCC(java.util.Map<V,java.lang.Long> cc_nodes)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||