org.graphstream.stream.file
Class FileSourcePajek

java.lang.Object
  extended by org.graphstream.stream.SourceBase
      extended by org.graphstream.stream.file.FileSourceParser
          extended by 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
FileSourcePajek()
           
 
Method Summary
 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, sendEdgeRemoved, sendEdgeRemoved, sendGraphCleared, sendGraphCleared, sendNodeAdded, sendNodeAdded, 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 Detail

FileSourcePajek

public FileSourcePajek()
Method Detail

getNewParserFactory

public ParserFactory getNewParserFactory()
Description copied from class: FileSourceParser
Get a new parser factory.

Specified by:
getNewParserFactory in class FileSourceParser
Returns:
a parser factory


Copyright © 2011. All Rights Reserved.