Two players are neighbors if they both have a unit or control a planet in the same system.
They are also neighbors if they both have a unit or control a planet in systems that are adjacent to each other. Players can resolve transactions with their neighbors. Players are neighbors if the adjacency of systems is granted by a wormhole.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.