Standing waves for the NLS on the double-bridge graph and a rational-irrational dichotomy