Show More
@@ -85,15 +85,6 def _updatesample(dag, nodes, sample, qu | |||||
85 | dist.setdefault(p, d + 1) |
|
85 | dist.setdefault(p, d + 1) | |
86 | visit.append(p) |
|
86 | visit.append(p) | |
87 |
|
87 | |||
88 | def _setupsample(dag, nodes, size): |
|
|||
89 | always = dag.headsetofconnecteds(nodes) |
|
|||
90 | desiredlen = size - len(always) |
|
|||
91 | if desiredlen <= 0: |
|
|||
92 | # This could be bad if there are very many heads, all unknown to the |
|
|||
93 | # server. We're counting on long request support here. |
|
|||
94 | return always, None, desiredlen |
|
|||
95 | return always, set(), desiredlen |
|
|||
96 |
|
||||
97 | def _takequicksample(dag, nodes, size): |
|
88 | def _takequicksample(dag, nodes, size): | |
98 | """takes a quick sample of size <size> |
|
89 | """takes a quick sample of size <size> | |
99 |
|
90 |
General Comments 0
You need to be logged in to leave comments.
Login now