Show how to extract bonds from a file.
3 from __future__
import print_function
7 def print_bonds(node, bf):
10 print(
"bond", bd.get_bonded_0(), bd.get_bonded_1())
12 for c
in node.get_children():
17 bf = RMF.BondFactory(fh)
19 print_bonds(fh.get_root_node(), bf)