Bits of code for shortest path drawings.