Skip to content

Commit

Permalink
get rid of side-effect
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewprzh committed Nov 15, 2024
1 parent 099bdc8 commit 7d495f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/intron_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ def signleton_dead_start(self, v):

def get_outgoing(self, intron, v_type=None):
res = []
if intron not in self.outgoing_edges:
return res
if v_type is None:
for v in self.outgoing_edges[intron]:
if v[0] >= 0:
Expand All @@ -221,6 +223,8 @@ def get_outgoing(self, intron, v_type=None):

def get_incoming(self, intron, v_type=None):
res = []
if intron not in self.incoming_edges:
return res
if v_type is None:
for v in self.incoming_edges[intron]:
if v[0] >= 0:
Expand Down

0 comments on commit 7d495f7

Please sign in to comment.