Every note labelled by its semitones-from-root. Pick a scale and root, then switch traversal strategy to see each efficient route through the octave drawn as a path. Reverse any path for the descent.
+1 fret = +1 semitone (the number axis)up a string = +5(+4 across G–B)octave = +12 = 2 strings + 2 frets
root (0)scale tone in routescale tone, off-routethe path