@Deprecated public class PreferentialAttachmentGenerator extends BaseGenerator
THIS GENERATOR IS DEPRECATED, USE THE BarabasiAlbertGenerator
INSTEAD.
This is a very simple graph generator that generates a tree using the preferential attachment rule defined in the Barabási-Albert model: nodes are generated one by one, and each time attached by an edge to another node that has more chance to chosen if it already has lots of nodes attached to it.
The more this generator is iterated, the more nodes are generated. It can therefore generate trees of any size.
Constructor and Description |
---|
PreferentialAttachmentGenerator()
Deprecated.
New generator.
|
Modifier and Type | Method and Description |
---|---|
void |
begin()
Deprecated.
Start the generator.
|
void |
end()
Deprecated.
Clean degrees.
|
boolean |
nextEvents()
Deprecated.
Step of the generator.
|
addEdgeAttribute, addEdgeAttribute, addEdgeAttribute, addEdgeLabels, addNodeAttribute, addNodeAttribute, addNodeAttribute, addNodeLabels, isUsingInternalGraph, removeEdgeAttribute, removeNodeAttribute, setDirectedEdges, setRandomSeed, setUseInternalGraph
addAttributeSink, addElementSink, addSink, attributeSinks, clearAttributeSinks, clearElementSinks, clearSinks, elementSinks, removeAttributeSink, removeElementSink, removeSink, sendAttributeChangedEvent, sendAttributeChangedEvent, sendEdgeAdded, sendEdgeAdded, sendEdgeAttributeAdded, sendEdgeAttributeAdded, sendEdgeAttributeChanged, sendEdgeAttributeChanged, sendEdgeAttributeRemoved, sendEdgeAttributeRemoved, sendEdgeRemoved, sendEdgeRemoved, sendGraphAttributeAdded, sendGraphAttributeAdded, sendGraphAttributeChanged, sendGraphAttributeChanged, sendGraphAttributeRemoved, sendGraphAttributeRemoved, sendGraphCleared, sendGraphCleared, sendNodeAdded, sendNodeAdded, sendNodeAttributeAdded, sendNodeAttributeAdded, sendNodeAttributeChanged, sendNodeAttributeChanged, sendNodeAttributeRemoved, sendNodeAttributeRemoved, sendNodeRemoved, sendNodeRemoved, sendStepBegins, sendStepBegins
public PreferentialAttachmentGenerator()
public void begin()
Generator.begin()
public boolean nextEvents()
Generator.nextEvents()
public void end()
end
in interface Generator
end
in class BaseGenerator
Generator.end()