Show More
@@ -95,10 +95,9 b' def _setupsample(dag, nodes, size):' | |||||
95 | return always, set(), desiredlen |
|
95 | return always, set(), desiredlen | |
96 |
|
96 | |||
97 | def _takequicksample(dag, nodes, size): |
|
97 | def _takequicksample(dag, nodes, size): | |
98 | always, sample, desiredlen = _setupsample(dag, nodes, size) |
|
98 | sample = dag.headsetofconnecteds(nodes) | |
99 | if sample is None: |
|
99 | if size <= len(sample): | |
100 |
return |
|
100 | return _limitsample(sample, size) | |
101 | sample = always |
|
|||
102 | _updatesample(dag, None, sample, quicksamplesize=size) |
|
101 | _updatesample(dag, None, sample, quicksamplesize=size) | |
103 | return sample |
|
102 | return sample | |
104 |
|
103 |
General Comments 0
You need to be logged in to leave comments.
Login now