I have a wiki where I want to cross-correlate concepts across uses of these concepts. (A concept, in this example, can be defined as any tiddler not tagged Use, while a use is obviously any tiddler tagged Use.) By "cross-correlate", I mean that given the current tiddler is a concept tiddler, find all the other concept tiddlers that are used on any use tiddler that links to the current tiddler (that is, they are often used together).
I can do this with the following filter:
[all[current]backlinks[]tag[Use]links[]!tag[Use]]
However, I would now like to retrieve (and sort by) the number of discrete link paths by which you can reach each concept (i.e., the number of times the current tiddler and this other concept are used together on a use tiddler). So if 5 use tiddlers which link to the current tiddler also link to a particular other concept tiddler, the number 5 should be accessible in a variable when $list'ing through that concept tiddler, to be used in sortsub[] or the like and the template displaying each match.
I haven't been able to think of any way to do this – I tried using the = filter prefix, but this evidently does not work when you're not adding the results to anything (and probably tag[] and links[] already deduplicate before they start).
Since I'm sure what I want is absolutely clear as mud at this point, here's a diagram of a toy example, with arrows representing links and the green numbers showing how many “matches” there would be for my search criteria:
As always, thanks for any suggestions!