Detecting and analysing the topology of the cosmic web with spatial clustering algorithms I: methods. Issue 4 (2nd September 2022)