How do I get a line boundary of nodes using networkx? See figure bellow. My problem is due to white colour nodes. I would like to diplay their shapes regardless the colour. See node 4 by comparison with others.
Code example
import networkx as nx
import matplotlib.pyplot as plot
g= {1: [2, 3],
2: [2, 3, 4],
3: [1, 2],
4: [2]}
graph= nx.Graph()
for v in g:
graph.add_node(v)
for v in g:
for u in g[v]:
graph.add_edge(v, u)
nx.draw_networkx(graph, node_color=['r', 'r', 'r', 'w'], node_shape='o')
plot.axis('off')
plot.show()
Output