Skip to main content
. 2021 Jan 21;21(3):709. doi: 10.3390/s21030709
Algorithm 3 G-IR Selection of influential users and locations.

     Input: LBSN: G,L; Query: (R,k,m)

     Output: S-seeds, V-locations 1

     Initialization and locations extraction, L, are same as in Algorithm 1.

     Extract Users checked in at L

  • 3:

    G=(U,E){UUUL}     ▹ Subgraph of users who checked in at location lying under target region

    fori1:kdo

        for all users u U do

  • 6:

            UCF=ComputeUserCheckinFreq(u)

        S=S{arg maxuUCFU{UUF}}

        U=US

  • 9:

    fori1:mdo

        for all locations l L do

            LUF=ComputeLocationUserFreq(l)

  • 12:

        V=V{arg maxlLUFV{LUF}}

        L=LV

    Return S,V