Do you mean something like nmap's network topolgy view? https://nmap.org/book/zenmap-topology.html
Just for visualizing network topology on Linux, there's a lot of tools.