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