gv(3tcl) gv(3tcl) NAME gv_tcl - graph manipulation in tcl SYNOPSIS #!/usr/bin/tclsh package require gv USAGE Requires tcl8.3 or later. INTRODUCTION gv_tcl is a dynamically loaded extension for tcl that provides access to the graph facilities of graphviz. COMMANDS New graphs New empty graph gv::graph gv::digraph gv::strictgraph gv::strictdigraph New graph from a dot-syntax string or file gv::readstring gv::read filename gv::read Add new subgraph to existing graph gv::graph New nodes Add new node to existing graph gv::node New edges Add new edge between existing nodes gv::edge Add a new edge between an existing tail node, and a named head node which will be induced in the graph if it doesn't already exist gv::edge Add a new edge between an existing head node, and a named tail node which will be induced in the graph if it doesn't already exist gv::edge Add a new edge between named tail and head nodes which will be induced in the graph if they don't already exist gv::edge Setting attribute values Set value of named attribute of graph/node/edge - creating attribute if necessary gv::setv gv::setv gv::setv Set value of existing attribute of graph/node/edge (using attribute handle) gv::setv gv::setv gv::setv Getting attribute values Get value of named attribute of graph/node/edge gv::getv gv::getv gv::getv Get value of attribute of graph/node/edge (using attribute handle) gv::getv gv::getv gv::getv Obtain names from handles gv::nameof gv::nameof gv::nameof Find handles from names gv::findsubg gv::findnode gv::findedge gv::findattr gv::findattr gv::findattr Misc graph navigators returning handles gv::headof gv::tailof gv::graphof gv::graphof gv::graphof gv::rootof Obtain handles of proto node/edge for setting default attribute values gv::protonode gv::protoedge Iterators Iteration termination tests gv::ok gv::ok gv::ok gv::ok Iterate over subgraphs of a graph gv::firstsubg gv::nextsubg Iterate over supergraphs of a graph (obscure and rarely useful) gv::firstsupg gv::nextsupg Iterate over edges of a graph gv::firstedge gv::nextedge Iterate over outedges of a graph gv::firstout gv::nextout Iterate over edges of a node gv::firstedge gv::nextedge Iterate over out-edges of a node gv::firstout gv::nextout Iterate over head nodes reachable from out-edges of a node gv::firsthead gv::nexthead Iterate over in-edges of a graph gv::firstin gv::nextin Iterate over in-edges of a node gv::firstin gv::nextin Iterate over tail nodes reachable from in-edges of a node gv::firsttail gv::nexttail Iterate over nodes of a graph gv::firstnode gv::nextnode Iterate over nodes of an edge gv::firstnode gv::nextnode Iterate over attributes of a graph gv::firstattr gv::nextattr Iterate over attributes of an edge gv::firstattr gv::nextattr Iterate over attributes of a node gv::firstattr gv::nextattr Remove graph objects gv::rm gv::rm gv::rm Layout Annotate a graph with layout attributes and values using a specific layout engine gv::layout engine Render Render a layout into attributes of the graph gv::render Render a layout to stdout gv::render format Render to an open file gv::render format fout Render a layout to an unopened file by name gv::render format filename Render to a string result gv::renderresult ing format gv::renderresult format outdata Render to an open channel gv::renderchannel format channelname Render a layout to a malloc'ed string, to be free'd by the caller (deprecated - too easy to leak memory) (still needed for "eval [gv::renderdata $G tk]" ) gv::renderdata format Writing graph back to file gv::write filename gv::write Graph transformation tools gv::tred KEYWORDS graph, dot, neato, fdp, circo, twopi, tcl. 29 April 2024 gv(3tcl)