If you to create an interactive network graph in a few lines of Python code, use Pyvis.
Link to pyvis.
Article.
Video.