i have a matrix of the form
a b 8.0
a d 0.1
......
where 1st column is Node A,2nd Node B and 3rd correlation coefficient i have to make a program that finds a threshold thus the connected network has a Giant Connected Component consist of 50-60% of total Network nodes. I wrote a program that using a binary search for the threshold like
if Giant Connected Component > 60% new threshold=oldthreshold + oldthreshold/2
if Giant Connected Component < 50% new threshold=oldthreshold - oldthreshold/2
The problem is that algorithm is also searching for thresholds > 1 and/or <0 .How i can handle this.Or is there any better idea how to calculate it?