summaryrefslogtreecommitdiff
path: root/networkx/tests/README
blob: 908bb0780fe0ded4e48882b6114258de15e553d9 (plain)
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.