def extremes(G):
    """Find left most and bottom nodes in the cartesian sense."""
    left_most = sorted(G.nodes(), key=lambda x: x[0])[0]
    bottom = sorted(G.nodes(), key=lambda x: x[1])[0]
    return left_most, bottom
