def is_junction(connectivity):
    """
    Returns True if connectivity corresponds a junction (is greater than two).
    
    :param connectivity: Scalar or matrix 
    :return: Boolean or matrix of boolean
    """
    return connectivity > 2
