public class MaxSimultaneousEdgeCount extends SinkAdapter
ae AB A B ae BC B C ae CD C D de BC ae DE D E de CD ae EF E F ae FG F G de EFthe maximal count of edges appearing simultaneously in the graph is 4.
Modifier and Type | Field and Description |
---|---|
protected int |
count
Current count of edges in the graph.
|
protected int |
max
Max count of edges.
|
Constructor and Description |
---|
MaxSimultaneousEdgeCount() |
Modifier and Type | Method and Description |
---|---|
void |
edgeAdded(String sourceId,
long timeId,
String edgeId,
String node1,
String node2,
boolean directed)
An edge was inserted in graph.
|
void |
edgeRemoved(String sourceId,
long timeId,
String edgeId)
An edge of graph was removed.The nodes the edge connects may already have
been removed from the graph.
|
int |
getMaxSimultaneousEdgeCount()
Get the max value.
|
void |
graphCleared(String sourceId,
long timeId)
The whole graph was cleared.
|
void |
reset()
Reset the max value.
|
edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, nodeAdded, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemoved, nodeRemoved, stepBegins
protected int count
protected int max
public MaxSimultaneousEdgeCount()
public void reset()
public int getMaxSimultaneousEdgeCount()
public void edgeAdded(String sourceId, long timeId, String edgeId, String node1, String node2, boolean directed)
ElementSink
edgeAdded
in interface ElementSink
edgeAdded
in class SinkAdapter
sourceId
- Identifier of the graph where the edge was added.edgeId
- Identifier of the added edge.node1
- Identifier of the first node of the edge.node2
- Identifier of the second node of the edge.directed
- If true, the edge is directed.public void edgeRemoved(String sourceId, long timeId, String edgeId)
ElementSink
edgeRemoved
in interface ElementSink
edgeRemoved
in class SinkAdapter
sourceId
- The graph where the edge will be removed.edgeId
- The edge that will be removed.public void graphCleared(String sourceId, long timeId)
ElementSink
graphCleared
in interface ElementSink
graphCleared
in class SinkAdapter
sourceId
- The graph cleared.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses