File: __init__.py

package info (click to toggle)
python-networkx 1.7~rc1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,128 kB
  • sloc: python: 44,557; makefile: 135
file content (20 lines) | stat: -rw-r--r-- 474 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# graph drawing and interface to graphviz
import sys
from networkx.drawing.layout import *
from networkx.drawing.nx_pylab import *

# graphviz interface
# prefer pygraphviz/agraph (it's faster)
from networkx.drawing.nx_agraph import *
try:
    import pydot
    import networkx.drawing.nx_pydot
    from networkx.drawing.nx_pydot import *
except ImportError:
    pass
try:
    import pygraphviz
    from networkx.drawing.nx_agraph import *
except ImportError:    
    pass