File: README

package info (click to toggle)
python-networkx 1.9%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,052 kB
  • ctags: 3,986
  • sloc: python: 52,132; makefile: 176
file content (24 lines) | stat: -rw-r--r-- 761 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
These files are for testing the methods and functions in NetworkX
The nose testing package is required for all tests:
http://somethingaboutorange.com/mrl/projects/nose

The tests also demonstrate the usage of many of the features of NetworkX.

There are a few ways to run the tests. 

The simplest way is to import networkx and run the test() function.

>>> import networkx
>>> networkx.test()

or::

   python -c "import networkx; networkx.test()

If you have the source package and the nose testing package you
can test the complete package from the unpacked source directory with::

   python setup_egg.py nosetests

The python module benchmark.py can be used to compare relative speed of small
code bits using the timeit module for different graph classes.