ricklupton / ipysankeywidget

IPython / Jupyter Sankey diagram widget
MIT License
175 stars 24 forks source link

first node has to be called 'start' for this to work #9

Closed chananshgong closed 7 years ago

chananshgong commented 7 years ago

Unless I tell it to name the first node 'start' it won't work

ricklupton commented 7 years ago

I'm not sure what you're trying to do. The example in the first example notebook still works if you change it like this, so the first node is called "Z" rather than "start":

links = [
    {'source': 'Z', 'target': 'A', 'value': 2},
    {'source': 'A', 'target': 'B', 'value': 2},
    {'source': 'B', 'target': 'Z', 'value': 0.2},
    {'source': 'C', 'target': 'A', 'value': 2},
    {'source': 'A', 'target': 'C', 'value': 2},
]