public class NEListReader extends GraphReader
Constructor and Description |
---|
NEListReader(java.io.Reader reader,
int mode)
Create a reader for a simple node/edge list format.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDesc()
Get a (line) description of the current graph.
|
static void |
main(java.lang.String[] args)
Main function for testing basic functionality.
|
boolean |
readGraph()
Read a graph.
|
boolean |
readHeader()
Read an (optional) header.
|
createReader, getAbsCompl, getAbsSupp, getEdgeCount, getGraph, getMode, getName, getNodeCount, getNotation, getRelCompl, getRelSupp, getValue
public NEListReader(java.io.Reader reader, int mode)
reader
- the reader to read frommode
- the read modepublic boolean readHeader() throws java.io.IOException
readHeader
in class GraphReader
false
, because headers are not supportedjava.io.IOException
- if an i/o error occurspublic boolean readGraph() throws java.io.IOException
The next graph description is read and split into the graph
name, the associated value, the actual graph description, and
(only in mode SUBS
) the support information.
getName(), getValue()
,
getGraph()
etc.
readGraph
in class GraphReader
java.io.IOException
- if an i/o error or a parse error occurspublic java.lang.String getDesc()
Since a connection table is not a line description, it is reformatted into the LiNoG format.
getDesc
in class GraphReader
public static void main(java.lang.String[] args)
args
- the command line arguments