Adding network visualization code.