Skip to content

Commit

Permalink
Change bad node shapes for igraph
Browse files Browse the repository at this point in the history
  • Loading branch information
humbertcostas committed May 19, 2021
1 parent 7056acf commit 5b3c959
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/mitre.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ build_network <- function(verbose = FALSE, as_igraph = TRUE) {


if (as_igraph) {
mitrenet$nodes$shape[mitrenet$nodes$shape %in% c("triangle", "box")] <- "circle"
mitrenet <- igraph::graph_from_data_frame(edges, directed = T, vertices = nodes)
} else {
mitrenet <- list(nodes = nodes, edges = edges)
Expand Down

0 comments on commit 5b3c959

Please sign in to comment.