'how can i make interactive network graph?

I have plot a figure to highlight the gas flow and direction in gas network like enter image description here

however, i wish make it interactive. I tried several ways but failed, is there idea to develop this? many thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source