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
I just found out that you can fix the initial state of the random generated graph: just seed the generator so it will always produce the same set of random positions.
random_pos = nx.random_layout(graph, seed=42) pos = nx.spring_layout(graph, pos=random_pos)