def get_predecessor(cx, graph, default=None):
    """Select first predecessor in graph.

    In Construction graphs, any node only 
    has one predecessor. This function returns
    that item.
    """
    return next(iter(graph.pred[cx]), default)