public class LCFGenerator extends BaseGenerator
Modifier and Type | Class and Description |
---|---|
static class |
LCFGenerator.LCF
Model a LCF notation.
|
SourceBase.ElementType
Modifier and Type | Field and Description |
---|---|
protected boolean |
canBeExtended |
private HashSet<String> |
crossed |
private int |
initialRingSize |
protected LCFGenerator.LCF |
lcf |
private int |
n |
addEdgeLabels, addNodeLabels, directed, edgeAttributeRange, edgeAttributes, internalGraph, nodeAttributeRange, nodeAttributes, random, randomlyDirected
attrSinks, eltsSinks, eventProcessing, eventQueue, sourceId, sourceTime
Constructor and Description |
---|
LCFGenerator(LCFGenerator.LCF lcf,
int initialRingSize,
boolean canBeExtended)
Build a new graph generator using a LCF notation.
|
Modifier and Type | Method and Description |
---|---|
void |
begin()
Begin the graph generation.
|
protected void |
flushCoords() |
protected String |
getEdgeId(int i1,
int i2) |
protected String |
getNodeId(int i) |
protected void |
increaseRing() |
protected void |
makeLCF() |
boolean |
nextEvents()
Perform the next step in generating the graph.
|
addEdge, addEdgeAttribute, addEdgeLabels, addNode, addNode, addNodeAttribute, addNodeLabels, clearKeptData, delEdge, delNode, end, isUsingInternalGraph, removeEdgeAttribute, removeNodeAttribute, setDirectedEdges, setEdgeAttributesRange, setNodeAttributesRange, setRandomSeed, setUseInternalGraph
addAttributeSink, addElementSink, addSink, attributeSinks, clearAttributeSinks, clearElementSinks, clearSinks, elementSinks, manageEvents, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSink
private int n
private int initialRingSize
protected LCFGenerator.LCF lcf
protected boolean canBeExtended
public LCFGenerator(LCFGenerator.LCF lcf, int initialRingSize, boolean canBeExtended)
lcf
- the lcf notation describing the graphinitialRingSize
- initial amount of nodescanBeExtended
- true if the graph can be extended, ie. if a node can be added
in a new #nextEvents() callpublic void begin()
Generator
Generator.nextEvents()
method to add elements to the graph.public boolean nextEvents()
Generator
protected void increaseRing()
protected void makeLCF()
protected void flushCoords()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses