neato - preprocessor for drawing undirected graphs
Here is a brief synopsis of the graph language.
graph name { statement-list } is the top level graph. Statements may be:
name=val;
node [name=val];
edge [name=val];
Set the default graph, node, or edge attribute name to val.
Any subgraph, node, or edge specified after one of these statements
inherits these attributes.
n0 [name0=val0,name1=val1,...]; Creates node n0 if it does not exist, and sets its attributes according to the optional list.
n0 -- n1 -- ... -- nn [name0=val0,name1=val1,...]; Creates edges between nodes n0, n1, ..., nn and optionally sets the given attributes. Creates nodes as necessary.
subgraph name { statement-list } Creates a subgraph. A subgraph may appear in place of an individual node within an edge statement. The subgraph name part is optional. If missing, the subgraph is given an internal name.
While attribute names and values may be arbitrary strings, certain fixed attributes control neato's layout algorithm, as next described.
start=val. Requests random initial placement and seeds the random number generator. If val is not an integer, the process ID or current time is used as the seed.
epsilon=n. Sets the cutoff for the solver. The default is 0.1.
w=f sets the weight (spring constant) of an edge to the given floating point value. The default is 1.0; greater values make the edge tend more toward its optimal length.
len=f sets the optimal length of an edge. The default is 1.0.
num = 1Equivalent to -n.
num > 1Use node positions as specified, with no adjustment to remove node-node overlaps, and use any edge layouts already specified by the pos attribute. neato computes an edge layout for any edge that does not have a pos attribute. As usual, edge layout is guided by the splines attribute.
-v (verbose) prints delta energy every 100th iteration.
Refer to dot(1) for a description of the other command-line options.
graph test123 { a -- b -- c; a -- {x y}; x -- c [w=10.0]; x -- y [w=5.0,len=3]; }
Apparently reasonable attempts to pin nodes or adjust edge lengths and weights can cause instability.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |