I am trying to create a graph with weights on edges based on paths list.
The example data is:
paths = [['home', 'bus stop', 'work'], ['home', 'shop', 'work'],
['home', 'shop', 'bus stop', 'work'], ['home', 'work'], ['home', 'bus stop']]
I need to get a weighted graph or a flowchart like this:
The problem is that the amount of nodes and paths is quite big, so plotting it manually is really not pleasurable.