Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions ngraph/blueprints.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,11 @@ def _expand_adjacency_pattern(
wrap-around if one side is an integer multiple of the other.
Also skips self-loops.
"""
source_nodes = ctx.network.select_nodes_by_path(source_path)
target_nodes = ctx.network.select_nodes_by_path(target_path)
source_node_groups = ctx.network.select_node_groups_by_path(source_path)
target_node_groups = ctx.network.select_node_groups_by_path(target_path)

source_nodes = [node for _, nodes in source_node_groups.items() for node in nodes]
target_nodes = [node for _, nodes in target_node_groups.items() for node in nodes]

if not source_nodes or not target_nodes:
return
Expand Down
Loading