Package org.graphstream.stream.file
Class FileSourcePajek
java.lang.Object
org.graphstream.stream.SourceBase
org.graphstream.stream.file.FileSourceParser
org.graphstream.stream.file.FileSourcePajek
- All Implemented Interfaces:
FileSource
,Source
public class FileSourcePajek extends FileSourceParser
A parser for the Pajek NET format.
This should support most the NET file format. However this format seems to
have numerous derivative that may not be known to us. It parses the
edges/arcs, edgeslist/arclist, and matrix notations. It understands a large
part of the formating notation, and transform it to CSS "ui.style" attribute
stored on nodes and edges.
The standard extension for such files is ".net".
-
Nested Class Summary
Nested classes/interfaces inherited from class org.graphstream.stream.SourceBase
SourceBase.ElementType
-
Constructor Summary
Constructors Constructor Description FileSourcePajek()
-
Method Summary
Modifier and Type Method Description ParserFactory
getNewParserFactory()
Get a new parser factory.Methods inherited from class org.graphstream.stream.file.FileSourceParser
begin, begin, begin, begin, end, nextEvents, nextStep, readAll, readAll, readAll, readAll
Methods inherited from class org.graphstream.stream.SourceBase
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
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graphstream.stream.Source
addAttributeSink, addElementSink, addSink, clearAttributeSinks, clearElementSinks, clearSinks, removeAttributeSink, removeElementSink, removeSink
-
Constructor Details
-
FileSourcePajek
public FileSourcePajek()
-
-
Method Details
-
getNewParserFactory
Description copied from class:FileSourceParser
Get a new parser factory.- Specified by:
getNewParserFactory
in classFileSourceParser
- Returns:
- a parser factory
-