分享

PyGraphviz

 dinghj 2015-04-08

PyGraphviz is a Python interface to the Graphviz graph layout and visualization package. With PyGraphviz you can create, edit, read, write, and draw graphs using Python to access the Graphviz graph data structure and layout algorithms. PyGraphviz is independent from NetworkX but provides a similar programming interface.

Quick Example

>>> import pygraphviz as pgv
>>> G=pgv.AGraph()
>>> G.add_node('a')
>>> G.add_edge('b','c')
>>> G
strict graph {
        a;
        b -- c;
}

To load a dot file use

>>> G=pgv.AGraph("file.dot")

Documentation

Tutorial
start here

Reference
guide to all functions and classes

Examples
using the library

Contents
a complete overview

Search Page
search the documentation

General Index
all functions, classes, terms

Module Index
quick access to all documented modules

Get PyGraphviz

Download PyGraphviz from the Python Package Index.

The code source code is available from the NetworkX SVN server at http://networkx./svn/pygraphviz/trunk.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多