def get_adjacency_data(cur):
    """
    Return list of adjacency data,
    [cell1,cell2,amount_of_contact,image_number]

    Parameters:
    -----------
    cur : MySQLdb cursor

    """
    sql = ("select pre,post,weight,imgNum "
           "from adjacency2")
    cur.execute(sql)
    return [(a[0],a[1],int(a[2]),a[3]) for a in cur.fetchall()]