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

« back to all changes in this revision

Viewing changes to networkx/tests/forest.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:
60
60
>>> print T.edges()
61
61
[(1, 2)]
62
62
 
 
63
>>> T=Forest()
 
64
>>> T.add_edge(1,2)
 
65
>>> T.delete_node(2)
 
66
>>> T.tree_nodes()
 
67
[[1]]
 
68
>>> T.delete_node(1)
 
69
>>> T.tree_nodes()
 
70
[]
63
71
 
64
72
Delete edge
65
73
-----------