Skip to content

Commit

Permalink
Merge pull request #465 from dokato/so_fix
Browse files Browse the repository at this point in the history
Minor SO fix
  • Loading branch information
jefferis committed Jun 3, 2021
2 parents c203a26 + 0d77b02 commit 760f19e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/ngraph.R
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,10 @@ strahler_order<-function(x){
roots=rootpoints(s, original.ids=FALSE)
if(length(roots)>1)
stop("strahler_order not yet defined for multiple subtrees")
# quick win for single branch neurons
if (length(x$BranchPoints) == 0)
return(list(points=rep(1, nrow(x$d)),
segments=rep(1, length(x$SegList))))

b=graph.bfs(s, root=roots, neimode = 'out', unreachable=F, father=T)

Expand Down

0 comments on commit 760f19e

Please sign in to comment.