Skip to content

Commit

Permalink
FIX: assign value for dag root when GSL starts from edge (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
LiSu committed Jul 6, 2023
1 parent 3e7f1dd commit 02d8963
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions graphlearn/python/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ def E(self,
dag, op_name="GetEdges", params=params)
source_node.set_output_field(pywrap.kEdgeIds)
source_node.set_path(edge_type, pywrap.NodeFrom.NODE)
dag.root = source_node

# Add sink node to dag
gsl.SinkNode(dag)
Expand Down

0 comments on commit 02d8963

Please sign in to comment.