GV - Python Is A Dynamically Loaded Extension For Python That Provides Access To The Graph Facilities of Graphviz
GV - Python Is A Dynamically Loaded Extension For Python That Provides Access To The Graph Facilities of Graphviz
GV - Python Is A Dynamically Loaded Extension For Python That Provides Access To The Graph Facilities of Graphviz
NAME
gv_python - graph manipulation in python
SYNOPSIS
#!/usr/bin/python
import sys
import gv
USAGE
INTRODUCTION
gv_python is a dynamically loaded extension for python that provides access to the graph facilities of
graphviz.
COMMANDS
New graphs
New empty graph
graph_handle gv.graph (name);
graph_handle gv.digraph (name);
graph_handle gv.strictgraph (name);
graph_handle gv.strictdigraph (name);
New graph from a dot-syntax string or file
graph_handle gv.readstring (string);
graph_handle gv.read (string filename);
graph_handle gv.read (channel);
Add new subgraph to existing graph
graph_handle gv.graph (graph_handle, name);
New nodes
Add new node to existing graph
node_handle gv.node (graph_handle, name);
New edges
Add new edge between existing nodes
edge_handle gv.edge (tail_node_handle, head_node_handle);
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
edge_handle gv.edge (tail_node_handle, head_name);
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
edge_handle gv.edge (tail_name, head_node_handle);
Add a new edge between named tail and head nodes which will be induced in the graph if they don’t
already exist
edge_handle gv.edge (graph_handle, tail_name, head_name);
Setting attribute values
Set value of named attribute of graph/node/edge - creating attribute if necessary
string gv.setv (graph_handle, attr_name, attr_value);
string gv.setv (node_handle, attr_name, attr_value);
string gv.setv (edge_handle, attr_name, attr_value);
17 December 2016 1
gv(3python) gv(3python)
17 December 2016 2
gv(3python) gv(3python)
17 December 2016 3
gv(3python) gv(3python)
KEYWORDS
graph, dot, neato, fdp, circo, twopi, python.
17 December 2016 4