public class NEList extends FreeNtn
Constructor and Description |
---|
NEList()
Create a list notation with empty type managers.
|
NEList(TypeMgr nodemgr,
TypeMgr edgemgr)
Create a list notation with given type managers.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
describe(Graph graph)
Create a string description of a graph.
|
boolean |
isLine()
Whether this is a line notation (single line description).
|
static void |
main(java.lang.String[] args)
Main function for testing basic functionality.
|
Graph |
parse(java.io.Reader reader)
Parse a description of an attributed graph.
|
void |
write(Graph graph,
java.io.Writer writer)
Write a description of an attributed graph.
|
getEdgeMgr, getNodeMgr, hasFixedTypes, setEdgeMgr, setNodeMgr
createNotation, getDelim, mark, read, setReader, setTypeMgrs, unmark, unread
public NEList()
By default this notation uses FreeTypeMgr
objects
for the type managers, which can be extended dynamically.
public boolean isLine()
public Graph parse(java.io.Reader reader) throws java.io.IOException
public java.lang.String describe(Graph graph)
public void write(Graph graph, java.io.Writer writer) throws java.io.IOException
public static void main(java.lang.String[] args)
It is tried to parse the first argument as a list description
of a graph. If this is successful, the parsed graph is printed
using the function write()
.
args
- the command line arguments