Comments (9)
from umstmo.
hi, thank you for your response
are you interested in working on a research paper?
from umstmo.
from umstmo.
from umstmo.
from umstmo.
unfortunately the email is hidden
please take it from my profile
it is jenan . moosa gmail
from umstmo.
network.txt file pls share
from umstmo.
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.
from umstmo.
Related Issues (2)
- Sample `network.txt` file HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from umstmo.