What the resistance was for
Worth reading first: A distance computed by a solve · A matrix with no numbers in it.
A graph with a tenth of the edges kept 344 of 1,225 edges, sampled by effective resistance and reweighted, and preserved every eigenvalue of the Laplacian to within a factor of 1.7. It lost half of its degrees and it stretched its diameter from one to three. It ended by naming what the graph field brings to randomised methods: “a sampling probability that is not uniform and not heuristic”, a computable property of each edge, “what makes the guarantee hold for every vector at once”.
The graph it measured was complete. Every edge of a complete graph has effective resistance exactly , so sampling by resistance there is uniform sampling, to the last digit. That is no fault in the demonstration, since a theorem about any graph holds on that one too. But nothing yet has compared the rule with anything else on a graph where the two differ, and so what the resistance contributes has not been measured.
Four graphs are enough to separate what it does. A complete graph of 40 vertices, as a control. A seven-by-seven grid, whose resistances vary only a little. Two cliques of twenty joined by one bridge, in which one edge has resistance one and the rest about a tenth. And two cliques of twenty joined by three edges, which softens that. Five rules sample each, with replacement and with each sampled edge reweighted by the inverse of its probability: exact resistance; a resistance sketched from two or eight random solves; the degree rule , which is a lower bound on the resistance and costs no solve at all; and uniform.
A sample is scored by the factor within which every eigenvalue of its Laplacian lies against the original’s, on the space orthogonal to the constants. A disconnected sample has no such factor, and it is counted separately as a failure.
The band hardly notices the rule
On the complete graph at 480 samples, exact resistance and uniform are the same draws and the band is 1.87, as the identity predicts. The degree rule is also identical, since every degree is equal. The grid is the case of interest, because its resistances do vary, between 0.51 and 0.70 across its edges. The band there is 2.63 by exact resistance, 2.60 uniformly and 2.48 by degrees. If anything the crude rules are slightly ahead, within the scatter of twenty-four draws. On the two clique graphs, on the draws that stayed connected, the bands are 1.99, 1.94 and 2.10 with one bridge, and 1.96, 2.00 and 2.05 with three edges.
So the first claim is off by a good way. Sampling by resistance does hold the eigenvalues in a band. So does sampling by anything else on a graph with no small cuts, and to about the same width, at sample counts this large. The theorem’s proof needs a probability proportional to resistance because it has to hold for every graph, and on every graph the worst edge’s contribution must be controlled. It says nothing about whether resistance improves the band on a graph whose worst edge is not very different from its others.
The grid’s curve confirms this at every sample count. At 240 samples exact resistance and uniform have bands of 4.3 and 5.0, and at 480 and 960 they lie on top of each other, at 2.6 and 1.8. In this picture the only thing clearly worse than doing nothing is a poor estimate of the resistance. A sketch with two solves has a band of 5.8 at 480 samples, more than twice uniform’s. A noisy probability is punished from both directions, and the next section reads the two directions apart. Noise in the probability is noise in the weights, and that is a cost a rule pays that uniform does not.
Which side of the band moves
A band is two numbers, the smallest and the largest eigenvalue of the sampled Laplacian against the original, and the median draws hide which one is responsible. On the grid at 480 samples, exact resistance has a floor of 0.380 and a top of 1.74. So the band’s 2.63 is the floor’s reciprocal, and it comes from directions the sample has under-covered and not from directions it has over-weighted. Uniform is nearly identical, 0.385 and 1.77. A smooth vector on the grid needs its edges in proportion, and an unlucky sample missing a few in one region is what holds the floor down.
The two-solve sketch moves both sides, as the mechanism says it should: its floor falls to 0.175 and its top rises to 2.49. An edge whose estimate is too small is sampled rarely, which uncovers it and lowers the floor, and if it is sampled at all it gets a very large weight, which raises the top. It also keeps fewer distinct edges, 77 of 84 against 84, since the mass has been concentrated on a handful it happens to overrate. Eight solves bring these to 0.343 and 1.85.
The worst draw separates the rules somewhat better than the median does. On the grid the worst band over 24 draws is 3.77 by exact resistance, 4.98 uniformly and 4.11 by the degree rule, with the two-solve sketch at 19.95. On the bridge graph’s connected draws it is 2.38, 3.18 and 3.33, with the sketch at 5.89. So there is a modest real advantage to the exact rule at the tail, on the order of a third. It is real, it stands behind a median that shows nothing, and it is smaller by far than the difference between staying connected and not. An answer that changes with the seed would ask for a band over draws rather than a median in any case.
The edge nothing else can see
Now for the bridge.
On two cliques joined by a single bridge, exact resistance gives that edge a resistance of one, and since the 380 others share the remaining 38 of the total 39 under Foster’s identity, the bridge has about a fortieth of the probability. Uniform sampling gives it one chance in 381. So at 240 samples, exact resistance stays connected on all 24 draws. Uniform sampling disconnects on 14 of them and the degree rule on 15. Only by 960 samples, two and a half times the number of edges in the graph, does uniform’s failure come down to two draws, and the degree rule’s to three.
The degree rule is the informative failure. Those two vertices have a degree of twenty, only one more than their neighbours, so for the bridge is nearly the same as for any edge in either clique: a lower bound on the resistance that is about a tenth of the truth for exactly this one edge. Its failure to see the bridge matches uniform’s almost to the draw. That lower bound is a local quantity. A bridge is not a local thing, and a distance computed by a solve explained why: effective resistance is the one quantity in this field with no combinatorial route to it, because it is the answer to a global linear system. Here is what that means in practice. A rule that asks only the two endpoints about an edge cannot tell that the edge is all that joins two halves of the graph.
Soften the cut to three edges and this eases, as the dial shows. Uniform at 120 samples disconnects on 7 draws, and at 480 on one. Three edges each have a third of the bridge’s resistance, but the cut’s total probability has tripled, and what the cut needs is for only one of them to be sampled.
The resistance is a cut’s survival rate
A cut’s survival has a closed form, and it is almost too simple to state. A sample of draws misses a set of edges with total probability with chance .
That formula accounts for the whole of the failure. Uniformly on the bridge graph it predicts 0.73, 0.53, 0.28 and 0.08 at 120, 240, 480 and 960 samples, and the measured shares are 18, 14, 9 and 2 of 24, or 0.75, 0.58, 0.38 and 0.08. Under exact resistance it predicts 0.044 at 120 and 0.002 at 240, against 2 and 0 of 24. These numbers need no spectral theory. A sampling rule disconnects a graph when it misses a cut, and the sum of the resistances across a cut is what makes the rule unlikely to miss it.
This is the structural reason the resistance is the right probability, and it is a stronger statement than the band. For any cut, the total resistance across it is at least one: a current has to flow across the cut, so its edges’ resistances must add up to at least the value one edge alone would have. Sampling in proportion to resistance therefore gives every cut in every graph at least of the total probability, whatever its size. That is why of about works in general. It is also why no local rule can match it: a cut of one edge has one edge’s worth of local evidence, and the resistance sums to at least one regardless.
So the formula in the earlier essay, that a band of a sample “fails outright” through undersampling to disconnection, was right about what that failure looks like. The measurement here adds that the failure is the entire difference between the rules, at these sample sizes. On the draws where nothing disconnects, the resistance has changed nothing a reader can measure.
There is a limitation. A large band, too, can come from a nearly missed cut: an unlucky sample keeping a bridge with a very high weight, or one which keeps a thin cut with a poor share of its edges. So a spectral band on connected draws has already had its worst cases removed. Reporting a band alongside a connection count, as these figures do, is the only honest way to compare rules, and a median band reported alone would make uniform sampling look better than it is.
How crude a resistance can be
Exact resistances are expensive: they need the pseudoinverse or a solve per pair, and the point of a sparsifier is usually to avoid exactly that. So the theorem’s own suggestion is to estimate them. Multiply the incidence matrix by a few random vectors and solve the Laplacian once for each. The result is a projection of the resistance distance into dimensions, which is the Johnson–Lindenstrauss argument applied to an edge’s effective resistance.
As an estimate this is poor at first, and it gets better slowly. At two solves the largest ratio over any edge is 6.3 and the smallest effectively zero, since an edge’s two random numbers can cancel exactly. At eight it runs from 0.10 to 2.9, at 32 from 0.51 to 1.7, and at 128 from 0.68 to 1.4. That shape is the usual one for a random projection, with the spread falling roughly as one over the square root of the solves, and the median sits near one at every count past the first. For an algorithm that wanted accurate resistances it would be a disappointing start.
For this one it is more than enough to find the bridge. The bridge’s estimated resistance can be several times too large or too small, but it is a large number compared with the 380 other edges in any case, and only a fraction of the total probability is needed. At 240 samples, even the two-solve sketch stays connected on all 24 draws. At 120, the two-solve sketch manages 14 of 24, the eight-solve sketch 18 and the exact rule 22, against uniform’s 6. So the detection of a cut is reached very early, and more solves are not buying connection.
What more solves buy is the band, by removing the noise in the weights. With a bridge graph at 240 samples, the band is 5.69 at two solves, 4.27 at four, 3.35 at eight and 3.23 at 16. By eight it has reached the exact rule’s 3.32. At 32 and 64 it is 3.01 and 2.93, which is below the exact rule, within what twenty-four draws can distinguish. So the crude resistance has two separate jobs: finding the cut, which it does almost immediately, and not disturbing the rest, which takes about eight solves on a graph this size.
That gives a code a clear recipe at these sizes. Two or four solves give connection. Eight give the band of exact sampling. Cheaper still, a program that knows its graph has no small cuts can use uniform sampling and not solve anything, and it will lose nothing but the guarantee. The trouble is the phrase “knows”, because the only cheap way to know that a graph has no bridge is to look for one, by the two-solve sketch or by a traversal. For a single bridge there is a linear-time depth-first search. For a thin cut, as the conductance essays discuss, the problem is much harder, and that is when a solve is cheap by comparison.
What is true of these four graphs and no others
These are small graphs, of forty to forty-nine vertices, chosen so that they differ in one respect. The clique-and-bridge graph is an extreme, and real sparse graphs have many cuts of intermediate quality and a wide spread of resistances, on which the comparison between rules could well be closer or further apart. Twenty-four draws at each setting gives a resolution of about one draw in twenty-four, so differences in the band under a few per cent cannot be read from these medians.
Sampling with replacement is the variant the earlier essay used, and independent inclusion of each edge has different variance. The degree rule used here is only one local rule, and a local rule of larger radius, one that reads the neighbours of the neighbours, might see a bridge in some graphs without a solve. The tree the resistances choose measures a different use of the same numbers, in which the resistance guides which basis of cycles to take, and a preconditioner that is a tree keeps even fewer edges for a different purpose, with no pretence of holding a band. A matrix with no numbers in it is where the Laplacian’s combinatorial identities start, and the resistance’s sum across a cut is one more of them. And none of this bears on the theorem’s correctness: it remains true that sampling by resistance gives a guarantee and uniform sampling gives none, since on the bridge graph uniform has no finite band at all on the draws it disconnects.
Still open: a graph with many thin cuts, and a local rule that reaches further
Many cuts. The bridge is one cut, and it is easy to see. A long path of small cliques, each joined to the next by one edge, has a chain of bridges. Each must be kept. The prediction with a sign is that uniform sampling needs about samples to keep them all, so that its failure is near certain at any below , while exact resistance needs about , a gap that widens as the chain lengthens. And the two-solve sketch is predicted to fail there where it succeeded here, since a chain gives it many chances for one bad estimate.
A wider look. A resistance is global, but a thin cut has a local signature: the neighbourhoods of the two endpoints hardly overlap. The prediction is that a rule proportional to one over the number of common neighbours of the endpoints, plus one, disconnects the bridge graph on under one draw in twelve at 240 samples, needing no solve, and that it fails on the grid only as badly as uniform does. If so, then the first of the resistance’s two jobs needs less than a solve on this family, and a chain of cuts is the case that separates them.
What links here
Computed from the collection, not written here: the essays that point at this one.
Named objects
A flat tag is an object no other essay names yet.
Connected componentsEffective resistanceGraph laplacianImportance samplingRandomisedSpectral sparsification