0

Hi when I dont include select_menu=True in inside Network, I was able to see the graph.

        nodes=['Short St', 'Jefferson St', 'South St', 'Sunset Dr', 'River Rd', 'Walnut St', 'Church St', 'Lincoln St', '3rd Av', 'Fairway Dr', 'Jackson St']
        edges=[('Short St', 'Jefferson St', {}), ('South St', 'Sunset Dr', {}), ('South St', 'Walnut St', {}), ('Sunset Dr', 'River Rd', {}), ('Sunset Dr', 'Walnut St', {}), ('Walnut St', 'Church St', {}), ('Lincoln St', '3rd Av', {}), ('Lincoln St', 'Jackson St', {}), ('3rd Av', 'Fairway Dr', {})]

        nt1 = Network(height="500px", width="500px", bgcolor="#222222", font_color="white",)
        nt1.from_nx(G)
        nt1.repulsion()
        nt1.show(r'output\original_graph.html')

enter image description here

However when I include select_menu =True, none of the node shows up

nt1 = Network(height="500px", width="500px", bgcolor="#222222", font_color="white", select_menu=True)

enter image description here

Why does this happen? also how can i make the line to be straight rather than curly

0 Answers0