Skip to content

Commit

Permalink
Added nodesIdSelection to AbstractGraphReporter default. Resolves upt…
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Dec 4, 2018
1 parent 05d2080 commit e6c9eb3
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions R/AbstractGraphReporter.R
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,14 @@ AbstractGraphReporter <- R6::R6Class(
visNetwork::visHierarchicalLayout(sortMethod = "directed"
, direction = "UD") %>%
visNetwork::visEdges(arrows = 'to') %>%
visNetwork::visOptions(highlightNearest = list(enabled = TRUE
, degree = nrow(plotDTnodes) # guarantee full path
, algorithm = "hierarchical"))
visNetwork::visOptions(
highlightNearest = list(
enabled = TRUE
, degree = nrow(plotDTnodes) # guarantee full path
, algorithm = "hierarchical"
)
, nodesIdSelection = TRUE
)

# Add orphan node clustering
if (numOrphanNodes > numOrphanThreshold) {
Expand Down Expand Up @@ -450,7 +455,7 @@ AbstractGraphReporter <- R6::R6Class(
self$nodes[, node]
, unique(c(self$edges[, SOURCE], self$edges[, TARGET]))
)

# If there are none, then will be character(0)
return(orphan_nodes)
},
Expand Down

0 comments on commit e6c9eb3

Please sign in to comment.