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