/usr/share/doc/graphviz/html/tcldot.html is in graphviz-doc 2.36.0-0ubuntu3.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | <html>
<head>
<title> Tcl Dot API (tcldot)</title>
<link rev=made href="mailto:ellson@graphviz.org">
</head>
<body>
<h1> Tcl Dot API (tcldot)</h1>
<p>(Tcl Dot also pulls in Gdtclft for writing to a gif image.)
<p><hr>
Create a new graph.
<pre>
<b>dotnew</b> <i>graphtype</i> ?<i>attributeName attributeValue</i>? ?...?
-> <i>graphHandle</i>
<i>graphtype</i>:= (<b>graph</b>|<b>digraph</b>|<b>graphstrict</b>|<b>digraphstrict</b>)
</pre>
Read a graph.
<pre>
<b>dotread</b> <i>fileHandle</i>
-> <i>graphHandle</i>
</pre>
Add a node to a graph
<pre>
<i>graphHandle</i> <b>addnode</b> ?<i>nodeName</i>? ?<i>attributeName attributeValue</i>? ?...?
-> <i>nodeHandle</i>
If the <i>nodeName</i> parameter is omitted the name of the
node defaults to <i>nodeHandle</i>.
</pre>
Add an edge to a graph
<pre>
<i>graphHandle</i> <b>addedge</b> <i>tailnode</i> <i>headnode</i> ?<i>attributeName attributeValue</i>? ?...?
-> <i>edgeHandle</i>
<i>tailnode</i> = (<i>tailnodeHandle</i>|<i>tailnodeName</i>)
<i>headnode</i> = (<i>headnodeHandle</i>|<i>headnodeName</i>)
NodeHandles take precedence, so if nodeName is of the form
"node99" it may conflict. The precedence can be overridden
with code such as:
<i>graphHandle</i> <b>addedge</b> <b>\</b>
<b>[</b><i>graphHandle</i> <b>findnode</b> <i>tailnodeName</i><b>]</b> <b>\</b>
<b>[</b><i>graphHandle</i> <b>findnode</b> <i>headnodeName</i><b>]</b>
</pre>
Add a subgraph to a graph
<pre>
<i>graphHandle</i> <b>addsubgraph</b> ?<i>subgName</i>? ?<i>attributeName attributeValue</i>? ?...?
-> <i>subgHandle</i>
If the <i>subgName</i> parameter is omitted the name of the
node defaults to <i>subgHandle</i>.
Clusters are created by giving a subgraph a name that begins
with "cluster".
</pre>
Add a edge to a node
<pre>
<i>tailnodeHandle</i> <b>addedge</b> <i>headnode</i> ?<i>attributeName attributeValue</i>? ?...?
-> <i>edgeHandle</i>
<i>headnode</i> = (<i>headnodeHandle</i>|<i>headnodeName</i>)
</pre>
Delete a graph/node/edge
<pre>
<i>graphHandle</i> <b>delete</b>
<i>nodeHandle</i> <b>delete</b>
<i>edgeHandle</i> <b>delete</b>
</pre>
Count nodes/edges
<pre>
<i>graphHandle</i> <b>countnodes</b>
-> <i>integer</i>
<i>graphHandle</i> <b>countedges</b>
-> <i>integer</i>
</pre>
List subgraphs/nodes/edges
<pre>
<i>graphHandle</i> <b>listnodes</b>
-> <i>{nodeHandle ... }</i>
<i>nodeHandle</i> <b>listedges</b>
-> <i>{edgeHandle ... }</i>
<i>nodeHandle</i> <b>listoutedges</b>
-> <i>{edgeHandle ... }</i>
<i>nodeHandle</i> <b>listinedges</b>
-> <i>{edgeHandle ... }</i>
<i>edgeHandle</i> <b>listnodes</b>
-> <i>tailnodeHandle</i> <i>headnodeHandle</i>
<i>graphHandle</i> <b>listsubgraphs</b>
-> <i>{graphHandle ... }</i>
</pre>
Find nodes/edges by nodename
<pre>
<i>graphHandle</i> <b>findnode</b> <i>nodename</i>
-> <i>nodeHandle</i>
<i>graphHandle</i> <b>findedge</b> <i>tailnodename</i> <i>headnodename</i>
-> <i>edgeHandle</i>
<i>nodeHandle</i> <b>findedge</b> <i>nodename</i>
-> <i>edgeHandle</i>
</pre>
Show graph/node/edge name
<pre>
<i>graphHandle</i> <b>showname</b>
-> <i>graphname</i>
<i>nodeHandle</i> <b>showname</b>
-> <i>nodename</i>
<i>edgeHandle</i> <b>showname</b>
-> <i>edgename</i>
</pre>
Set default node/edge attributes
<pre>
<i>graphHandle</i> <b>setnodeattributes</b> <i>attributeName attributeValue</i> ?...?
<i>graphHandle</i> <b>setedgeattributes</b> <i>attributeName attributeValue</i> ?...?
</pre>
List node/edge attribute names
<pre>
<i>graphHandle</i> <b>listnodeattributes</b>
-> <i>{attributeName ... }</i>
<i>graphHandle</i> <b>listedgeattributes</b>
-> <i>{attributeName ... }</i>
</pre>
Query default node/edge attributes
<pre>
<i>graphHandle</i> <b>querynodeattributes</b> <i>attributeName</i> ?...?
-> <i>{attributeValue ... }</i>
<i>graphHandle</i> <b>queryedgeattributes</b> <i>attributeName</i> ?...?
-> <i>{attributeValue ... }</i>
</pre>
Set graph/node/edge attributes
<pre>
<i>graphHandle</i> <b>setattributes</b> <I>attributeName attributeValue</i> ?...?
<i>nodeHandle</i> <b>setattributes</b> <i>attributeName attributeValue</i> ?...?
<i>edgeHandle</i> <b>setattributes</b> <i>attributeName attributeValue</i> ?...?
</pre>
List graph/node/edge attribute names
<pre>
<i>graphHandle</i> <b>listattributes</b>
-> <i>{attributeName ... }</i>
<i>nodeHandle</i> <b>listattributes</b>
-> <i>{attributeName ... }</i>
<i>edgeHandle</i> <b>listattributes</b>
-> <i>{attributeName ... }</i>
</pre>
Query graph/node/edge attribute values
<pre>
<i>graphHandle</i> <b>queryattributes</b> <i>attributeName</i> ?<i>attributeName</i>? ?...?
-> <i>{attributeValue ... }</i>
<i>nodeHandle</i> <b>queryattributes</b> <i>attributeName</i> ?<i>attributeName</i>? ?...?
-> <i>{attributeValue ... }</i>
<i>edgeHandle</i> <b>queryattributes</b> <i>attributeName</i> ?<i>attributeName</i>? ?...?
-> <i>{attributeValue ... }</i>
</pre>
Layout nodes
<pre>
<i>graphHandle</i> <b>layoutNodes</b>
<b>NOTE:</b> Not yet implemented. Use:
<i>graphHandle</i> <b>layout</b>
to layout both nodes and edges.
</pre>
Layout edges
<pre>
<i>graphHandle</i> <b>layoutEdges</b> -<i>style</i>
<i>style</i>:= (<b>straight</b>|<b>spline</b>)
<b>NOTE:</b> Not yet implemented. Use:
<i>graphHandle</i> <b>layout</b>
to layout both nodes and edges.
</pre>
Write graph to file
<pre>
<i>graphHandle</i> <b>write</b> <i>filehandle</i> <i>format</i>
<i>format</i>:= (<b>ps</b>|<b>mif</b>|<b>hpgl</b>|<b>gif</b>|<b>plain</b>|<b>dot</b>)
</pre>
Render graph to existing or new gifImage (see:
<a href=http://guraldi.hgp.med.umich.edu/gdtcl.html>gdTcl</a>)
<pre>
<i>graphHandle</i> <b>rendergd</b> ?<i>gdHandle</i>?
-> <i>gdHandle</i>
</pre>
Render graph to canvas (tkdot only)
<pre>
<i>graphHandle</i> <b>render</b> <i>canvashandle</i>
<b>NOTE:</b> Not yet fully implemented. For now use:
<b>set c</b> <i>canvasHandle</i>
<b>eval [</b><i>graphHandle</i> <b>render]</b>
</pre>
</body>
</html>
|