14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
21
def max_distance(node, ancestors, distances, root_descendants):
18
22
"""Calculate the max distance to an ancestor.
19
23
Return None if not all possible ancestors have known distances"""