public class LiNoG extends FreeNtn
Constructor and Description |
---|
LiNoG()
Create an attributed graph line notation object.
|
LiNoG(TypeMgr nodemgr,
TypeMgr edgemgr)
Create an attributed graph line notation object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
describe(Graph graph)
Create a description of a given attributed 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 a graph.
|
getEdgeMgr, getNodeMgr, hasFixedTypes, setEdgeMgr, setNodeMgr
createNotation, getDelim, mark, read, setReader, setTypeMgrs, unmark, unread
public LiNoG()
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 an LiNoG
description of a graph. If this is successful, the parsed graph
is printed using the function describe()
.
args
- the command line arguments