I developed a method on narrower roads when I have some concern about what is coming up from behind. I generally hug the side, especially when there is minimal extra room for a bike when two cars go by in opposite directions. When I hear a car coming up from behind, close enough to see me up ahead but still some good distance away, I break the pattern of riding straight in control along the edge and swing in and out abruptly a time or two before going back to the edge. What it does is make the driver coming up unsure of exactly what they have going on ahead, maybe an intoxicated or elderly person, but whatever it is, the rider doesn't seem in very good control to the person behind the wheel. I can hear them reduce their speed when they see that, they get concerned that I might swing out again at any time. Most people want to avoid hitting a rider at all costs, even going to the extreme extent of slowing down! Its a fake out ploy, but it always works. i consider it self defense. Riding tight and straight along the edge only works against your benefit with the A holes, that think that can streak by at high speed and close proximity, because they aren't going to hit you.