~ubuntu-branches/ubuntu/wily/python-networkx/wily

« back to all changes in this revision

Viewing changes to networkx/tests/tree.txt

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-03-02 01:06:32 UTC
  • mfrom: (1.2.1 upstream) (3.1.3 hardy)
  • Revision ID: james.westby@ubuntu.com-20080302010632-1lp6qe1orf59jl8b
* debian/control:
   + Replace python-setuptools with python-pkg-resources in the
     “Recommends:” since pkg_resources is now available in this
     separate package, thanks Matthias Klose (Closes: #468721).
* debian/copyright:
   + Use “© $years $name” instead of invalid “$name, $years” and
     “(C) $years, $name”, thanks to lintian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
>>> T.add_node(0)
16
16
Traceback (most recent call last):
17
17
...
18
 
NetworkXError: adding single node 0 not allowed in tree
 
18
NetworkXError: adding single node 0 not allowed in non-empty tree
19
19
>>> T.add_nodes_from(range(0,1))
20
20
Traceback (most recent call last):
21
21
...
22
 
NetworkXError: adding single node 0 not allowed in tree
 
22
NetworkXError: adding single node 0 not allowed in non-empty tree
23
23
 
24
24
 
25
25
Add leaf
116
116
>>> T.add_node(0)
117
117
Traceback (most recent call last):
118
118
...
119
 
NetworkXError: adding single node 0 not allowed in tree
 
119
NetworkXError: adding single node 0 not allowed in non-empty tree
120
120
>>> T.add_nodes_from(range(0,1))
121
121
Traceback (most recent call last):
122
122
...
123
 
NetworkXError: adding single node 0 not allowed in tree
 
123
NetworkXError: adding single node 0 not allowed in non-empty tree
124
124
 
125
125
 
126
126
Add leaf
218
218
>>> T.add_node(5)
219
219
Traceback (most recent call last):
220
220
...
221
 
NetworkXError: adding single node 5 not allowed in tree
 
221
NetworkXError: adding single node 5 not allowed in non-empty tree
222
222
 
223
223
>>> T.add_edge(4,5)
224
224
>>> print sorted(T.edges())