- for each node, just have one possible path. So pkd would have pkdsto, pkdhum, pkdorm, etc. And if you wanted sto -> hum -> orm instead of sto -> pkd -> orm, for example. You'd have to do stohum, then humorm, instead of just stoorm, which would do the latter.
- TODO - probably should be snippet for generating the FROM, as well as the JOINs, in one snippet *stopkd -> FROM t_stored_item sto WITH (NOLOCK) JOIN t_pick_detail pkd WITH (NOLOCK) ON sto.type = pkd.pick_id
- Make it a undirected graph and see what happens! :O
- multiple nodes per snippet
- here was the motivating thing - breaking ties. I was thinking a common thing is finding sto on people's fork. So naturally I tried
stoemp
. But there were multiple shortest paths, and it happened to dosto
topkd
toemp
first. And that's not what I wanted - I wantedsto
toloc
toemp
. So you don't necessarily have to input the entire path, but you still get snippet uniqueness. stolocemp
is: what is the shortest path fromsto
toemp
throughloc
- And some way I think you can unify this with
stohumloc
, for example, to get multiple paths with a given start.
- here was the motivating thing - breaking ties. I was thinking a common thing is finding sto on people's fork. So naturally I tried
- INNER JOINs ARE COMMUTATIVE!!
stopkd
=pkdsto
- should be an undirected graph when calculating joins! Agh!
- Certain nodes, while in shortest-path calculation, can only be start or end nodes
- like if you go to lkp, you're done. You can't come out of there are again.
- b/c a to lkp and lkp to b will never both join!
- I think lkp is probably the exception in this b/c of the constant strings involved in the join