Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NewStuff #2

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open

Conversation

SergioFernandez1992
Copy link

"""
Created on Wed Nov 27 17:45:26 2019

@author: sergi
"""

from graphtools import *

def makeClusterList(graph,clusters):
listToTraverse
for i in range(len(clusters)):
listToTraverse[i] = get_cluster(graph,[i])

 for i in range(len(clusters))
    j=i+1
    for j in range(len(clusters)) 
        if verbose: print "Checking c%d c%d" % (i, j)
        ms = merge_score(graph, listToTraverse[i], listToTraverse[j], a)
        if verbose: print "Merge score: %f" % (ms)
        if ms > max_score:
            if verbose: print "Better than: %f" % (max_score)
            max_score = ms
            ci, cj = clusters[i], clusters[j]

for i in range(len(clusters))
    j=i+1
    for j in range(len(clusters)) 
        if verbose: print "Checking c%d c%d" % (i, j)
        ms = merge_score(graph, get_cluster(graph,clusters[i]), get_cluster(graph,clusters[j]), a)
        if verbose: print "Merge score: %f" % (ms)
        if ms > max_score:
            if verbose: print "Better than: %f" % (max_score)
            max_score = ms
            ci, cj = clusters[i], clusters[j]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants