I created a graph with networkx assigning properties to each node. Then, I used netgraph to display my graph in Jupiter Notebook (Python 3.5) as an Interactive graph (using netgraph.InteractiveGraph), the problem is that when I want to use a different shape for different nodes, the nodes aren't moving unless they all are the same figure.
If anyone knows how to solve this, please let me know! Below is my code. Thank you!
#Graph creation:
G=nx.Graph(type="")
for i in range(6):
G.add_node(i,shape="o")
#Changing shape for two nodes
G.node[1]['shape'] = "v"
G.node[5]['shape'] = "v"
#Add edges
G.add_edge(1,2)
G.add_edge(4,5)
G.add_edge(0,4)
G.add_edge(2,3)
G.add_edge(2,4)
#Get node shapes
node_shapes = nx.get_node_attributes(G,"shape")
%matplotlib notebook
plot_instance = netgraph.InteractiveGraph(G, node_shape=node_shapes)