public class GEXF extends PipeBase implements GEXFElement
SourceBase.ElementType
GEXFElement.AttrType, GEXFElement.ClassType, GEXFElement.DefaultEdgeType, GEXFElement.Extension, GEXFElement.IDType, GEXFElement.Mode, GEXFElement.TimeFormat
Modifier and Type | Field and Description |
---|---|
(package private) int |
currentAttributeIndex |
(package private) HashSet<GEXFElement.Extension> |
extensions |
(package private) GEXFGraph |
graph |
(package private) GEXFMeta |
meta |
(package private) double |
step |
(package private) GEXFElement.TimeFormat |
timeFormat |
static String |
VERSION |
static String |
XMLNS |
static String |
XMLNS_SL |
static String |
XMLNS_VIZ |
static String |
XMLNS_XSI |
attrSinks, eltsSinks, eventProcessing, eventQueue, sourceId, sourceTime
Constructor and Description |
---|
GEXF() |
Modifier and Type | Method and Description |
---|---|
void |
disable(GEXFElement.Extension ext) |
void |
enable(GEXFElement.Extension ext) |
void |
export(SmartXMLWriter stream) |
(package private) GEXFAttribute |
getEdgeAttribute(String key) |
(package private) int |
getNewAttributeIndex() |
(package private) GEXFAttribute |
getNodeAttribute(String key) |
GEXFElement.TimeFormat |
getTimeFormat() |
boolean |
isExtensionEnable(GEXFElement.Extension ext) |
void |
stepBegins(String sourceId,
long timeId,
double step)
Since dynamic graphs are based on discrete event modifications, the
notion of step is defined to simulate elapsed time between events.
|
edgeAdded, edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, edgeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, graphCleared, nodeAdded, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemoved, nodeRemoved
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
public static final String XMLNS
public static final String XMLNS_XSI
public static final String XMLNS_SL
public static final String XMLNS_VIZ
public static final String VERSION
int currentAttributeIndex
double step
HashSet<GEXFElement.Extension> extensions
GEXFElement.TimeFormat timeFormat
public GEXF()
public GEXFElement.TimeFormat getTimeFormat()
public boolean isExtensionEnable(GEXFElement.Extension ext)
public void disable(GEXFElement.Extension ext)
public void enable(GEXFElement.Extension ext)
public void export(SmartXMLWriter stream) throws XMLStreamException
export
in interface GEXFElement
XMLStreamException
int getNewAttributeIndex()
GEXFAttribute getNodeAttribute(String key)
GEXFAttribute getEdgeAttribute(String key)
public void stepBegins(String sourceId, long timeId, double step)
ElementSink
Since dynamic graphs are based on discrete event modifications, the notion of step is defined to simulate elapsed time between events. So a step is a event that occurs in the graph, it does not modify it but it gives a kind of timestamp that allow the tracking of the progress of the graph over the time.
This kind of event is useful for dynamic algorithms that listen to the dynamic graph and need to measure the time in the graph's evolution.
stepBegins
in interface ElementSink
stepBegins
in class PipeBase
sourceId
- Identifier of the graph where the step starts.timeId
- A numerical value that may give a timestamp to track the
evolution of the graph over the time.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses