Statistics
| Branch: | Revision:

iof-tools / networkxMiCe / networkx-master / networkx / tests / README @ 5cef0f13

History | View | Annotate | Download (749 Bytes)

1
These files are for testing the methods and functions in NetworkX
2
The nose testing package is required for all tests:
3
http://nose.readthedocs.io/en/latest/
4

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

    
7
There are a few ways to run the tests. 
8

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

    
11
>>> import networkx
12
>>> networkx.test()
13

    
14
or::
15

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

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

    
21
   python setup_egg.py nosetests
22

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