4.3.2 Graph Objects

The NewPedigree::savegraph() save a pedigree to a file as an adjacency list, which is a commonly-used format for describing digraphs. If the pedigree has already been converted to a digraph pass it using the pedgraph argument; otherwise, the method will call the appropriate converter:
test.savegraph(pedoutfile='test.adj')
The file "test.adj" has the following comments:
# sqlite.py
# GMT Tue Mar  4 20:38:52 2008
# Text Stream
1 5
2 6
3 5
4 6
5 7
6 7
7
This example demonstrates that there can be a considerable loss of information when going from a PyPedal pedigree to some other way of representing the pedigree, such as a graph.

See About this document... for information on suggesting changes.