Use https://github.com/digitalocean/netbox to record your network information. Then you can create topology maps with dot/graphviz. https://netbox.readthedocs.io/en/latest/additional-features/...
Someone has a tutorial on using graphviz directly: https://mikegriffin.ie/blog/20110308-a-graphviz-tutorial