Class PajekReader
java.lang.Object
org.graffiti.plugin.io.AbstractInputSerializer
de.ipk_gatersleben.ag_nw.graffiti.plugins.ios.importers.pajek.PajekReader
- All Implemented Interfaces:
InputSerializer,Serializer
public class PajekReader extends AbstractInputSerializer
edges in list form (not supported): vertices <# of vertices> 1 "x" 2 "y" 3
"z" arcslist 1 2 3 2 3 non-list form for edges: vertices <# of vertices> 1
"a" x y z 2 "b" x y 3 "c" edges 1 2 0.3 1 3 0.7 2 3 1.0 arcs 1 2 0.3 1 3 0.7
2 3 1.0
- Author:
- Christian Klukas
-
Constructor Summary
Constructors Constructor Description PajekReader() -
Method Summary
Modifier and Type Method Description String[]getExtensions()The file extensions the serializer can read or write.String[]getFileTypeDescriptions()The file type descriptions of the files the serializer can read or write.voidread(InputStream in, Graph g)Reads in a graph from the given input stream.voidread(Reader reader, Graph g)voidread(String filename, Graph g)Reads in a graph from the given filename.Methods inherited from class org.graffiti.plugin.io.AbstractInputSerializer
read, read, validFor
-
Constructor Details
-
PajekReader
public PajekReader()
-
-
Method Details
-
read
Description copied from class:AbstractInputSerializerReads in a graph from the given filename.- Specified by:
readin interfaceInputSerializer- Overrides:
readin classAbstractInputSerializer- Parameters:
filename- The name of the file to read the graph from.g- The graph to add the newly read graph to.- Throws:
IOException- If an IO error occurs.
-
read
Description copied from class:AbstractInputSerializerReads in a graph from the given input stream.- Specified by:
readin interfaceInputSerializer- Specified by:
readin classAbstractInputSerializer- Parameters:
in- The input stream to read the graph from.g- The graph to add the newly read graph to.- Throws:
IOException- If an IO error occurs.
-
getExtensions
Description copied from interface:SerializerThe file extensions the serializer can read or write.- Returns:
- DOCUMENT ME!
-
getFileTypeDescriptions
Description copied from interface:SerializerThe file type descriptions of the files the serializer can read or write.- Returns:
- DOCUMENT ME!
-
read
- Throws:
Exception
-