Skip to content

Commit

Permalink
Added debugging print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 18, 2018
1 parent 285533c commit c71ee92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion holoviews/element/sankey.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,18 @@ def computeNodeDepths(self, graph):
"""
nodes = graph['nodes']
depth = 0
import inspect
while nodes:
next_nodes = []
print('>>>')
for node in nodes:
node['depth'] = depth
for link in node['sourceLinks']:
print(depth, len(inspect.stack()))
if link['target'] not in next_nodes:
next_nodes.append(link['target'])
nodes = next_nodes
depth +=1
depth += 1
if depth > 10000:
raise RecursionError('Sankey diagrams only support acyclic graphs.')

Expand Down

0 comments on commit c71ee92

Please sign in to comment.