If I generate the same graph multiple times using NetworkX and Matplotlib it\'s rotated randomly on every generation:
Run 1:
Run 2:
Without changin
From the docs:
spring_layout(G, dim=2, k=None, pos=None, fixed=None, iterations=50, weight='weight', scale=1.0)
pos : dict or None optional (default=None)
Initial positions for nodes as a dictionary with node as keys and values as a list or tuple. If None, then use random initial positions.
So if you don't specify initial positions of your nodes, NetworkX will do so at random.
https://networkx.github.io/documentation/networkx-1.9/reference/generated/networkx.drawing.layout.spring_layout.html