Swarm Prevention Methods

I live in an urban city and would like to become a beekeeper however my primary concern are swarms because I only have enough space for 1 (maybe 2) hives meaning I won’t be able to expand much. Plus I have some “easily disturbed” neighbors that will NOT be happy seeing a swarm on their tree. Does anyone have a method that discourages bees from swarming.

Thanks in advance

A comprehensive guide to the methods commonly used:

This is worth reading too:

Thanks a lot for the help.