An algorithm is required to map the network. The algorithm must bypass addresses in the network and compile a file with information about the connections between nodes.
There are two parameters at the entrance: 1. List of personal computer names; 2. Address ranges in 192.168.0.0/24, 192.168.0.0.-192.168.10.255 format
The output should be a JSON file: [{"Id": 0,"192.168.0.1","Type"Switch","NeighborIds":[2, 3, 4 ],"Ip";;,";Type",";;;;;;;;;,""";;;;;;;";;;;;;;;";;;;;;;;;;;;;;;;;""";;;;;;;;;;;;;;;""";;;;;;;;;""""";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"""""""""""""""""""""""";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"""""""""""& ]