Skip to content

Commit

Permalink
Fixed error when removing None nodes in the visualization and a None …
Browse files Browse the repository at this point in the history
…was an input to a function (#31)

Co-authored-by: Cristiano Köhler <[email protected]>
  • Loading branch information
kohlerca and Cristiano Köhler authored Oct 26, 2024
1 parent 5d1e8ef commit 2b8dd34
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions alpaca/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,12 @@ def _transform_graph(graph, annotations=None, attributes=None,
# Add all the edges from sources to activity and from activity
# to targets
for source in source_entities:
transformed.add_edge(source, node_id, membership=False)
if time_intervals:
_add_gephi_interval(transformed.nodes[source],
node_data['execution_order'])
if not remove_none or (
remove_none and source not in none_nodes):
transformed.add_edge(source, node_id, membership=False)
if time_intervals:
_add_gephi_interval(transformed.nodes[source],
node_data['execution_order'])

if not remove_none or (remove_none and target not in none_nodes):
transformed.add_edge(node_id, target, membership=False)
Expand Down

0 comments on commit 2b8dd34

Please sign in to comment.