To run the code, ensure you have the following Python modules installed:
numpy: For numerical computations.matplotlib: For visualization of paths and results.networkx: For graph-based operations.pyvis: For interactive visualization of graphs (optional).
Run the APF.py script.