Giter Club home page Giter Club logo

Comments (9)

khawka avatar khawka commented on July 26, 2024

from umstmo.

jenanMoosa avatar jenanMoosa commented on July 26, 2024

hi, thank you for your response
are you interested in working on a research paper?

from umstmo.

khawka avatar khawka commented on July 26, 2024

from umstmo.

jenanMoosa avatar jenanMoosa commented on July 26, 2024

from umstmo.

khawka avatar khawka commented on July 26, 2024

from umstmo.

jenanMoosa avatar jenanMoosa commented on July 26, 2024

unfortunately the email is hidden
please take it from my profile
it is jenan . moosa gmail

from umstmo.

rishi6789 avatar rishi6789 commented on July 26, 2024

network.txt file pls share

from umstmo.

rishi6789 avatar rishi6789 commented on July 26, 2024

Not able to understand this piece of code please help

if len(b)==1 :
if not k in up :
c.append([b[0]])
#print(b[0])
#up.append(k)
up.append(b[0])
for k2 in c:
if len(k2) >0:
k2.append(k)
k2.sort()
if not k2 in re:
re.append(k2)
#ll.remove(k)
for ll2 in k2:
up.append(ll2)
sup=list(set(G.nodes())-set(up))
#sup1=list(set(G.nodes())-set(G3.nodes()))
##print('sup', sup)
#print('nodes',G3.nodes())
re.sort(key=len,reverse=True)

#print('re',re)
res=re

r=0

#tr=G.nodes()
#G.clear()

   
print('assign nodes without local communities to the suitable group')
for k in sup:
        #print(k)
        #G3.neighbors(k)
        max=0
        ne=G.neighbors(k)
        #print(ne)
        i=0
        while i <len(res):
            aa=len(set(ne).intersection(res[i]))
           
            if aa>=max:
                max=aa
                temp=i
                if (aa)>len(ne)-aa:
                   
                    i=len(res)
            i=i+1
        if max>0:
            res[temp].append(k)
        else:
            res.append([k])

from umstmo.

khawka avatar khawka commented on July 26, 2024

from umstmo.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.