public class FileSourceGML extends FileSourceParser
node [ Id "foo" ]
Which is useful when adding attributes to it. Or you can use a lighter
declaration with:
node "foo"
You can also remove nodes and edges by using:
-node "foo"
del-node "foo"
-node [ Id "foo" ]
del-node [ Id "foo" ]
And the same for edges with "-edge" or "del-edge".
All the dynamic events of GraphStream are supported as an extension.
You can add or remove attributes to or from a node or edge using a minus sign
in front of the attribute name and following the attribute name by [].
You can remove a node or edge using a minus sign in front of the node and
edge tags:
-node [ id "foo" ]
Or
-node "foo"
You can change the attributes of a node or edge using a plus sign in front of
the node and edge tags:
+node [ id "foo" someAttribute "added" -removedAttribute [] ]
Be careful, that files exported with the dynamic extensions will not be
compatible with most GML readers of other programs.
The standard extension for GML files is ".gml". If your file contains dynamic
additions, you can use the ".dgml" (Dynamic GML) extensions. The parser will
handle both dynamic and non dynamic files with the extension ".gml".SourceBase.ElementType| Constructor and Description |
|---|
FileSourceGML() |
| Modifier and Type | Method and Description |
|---|---|
ParserFactory |
getNewParserFactory()
Get a new parser factory.
|
boolean |
nextStep()
Since there is no step in DOT, this does the same action than
FileSourceParser.nextEvents(). |
begin, begin, begin, begin, end, nextEvents, readAll, readAll, readAll, readAlladdAttributeSink, 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, sendStepBeginsequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSinkpublic boolean nextStep()
throws java.io.IOException
FileSourceParserFileSourceParser.nextEvents().nextStep in interface FileSourcenextStep in class FileSourceParserjava.io.IOException - If an I/O error occurs while reading.public ParserFactory getNewParserFactory()
FileSourceParsergetNewParserFactory in class FileSourceParser