R version 4.5.0 RC (2025-04-04 r88118 ucrt) -- "How About a Twenty-Six" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(WayFindR) > library(igraph) Attaching package: 'igraph' The following objects are masked from 'package:stats': decompose, spectrum The following object is masked from 'package:base': union > xmlfile <- system.file("pathways/WP3850.gpml", package = "WayFindR") > G <- GPMLtoIgraph(xmlfile) > > nids <- c("c0520", "c7b3c", "c90fd", "efc0d", + "b3356", "b2d78", "b2305") > S <- subgraph(G, nids) > set.seed (54321) > L <- layout_nicely(S) > plot(S, layout = L) > sz <- (strwidth(V(S)$label) + strwidth("oo")) * 150 > S <- set_vertex_attr(S, "size", value = sz) > S <- set_vertex_attr(S, "size2", value = strheight("I") * 2 * 150) > plot(S, layout = L) > S <- set_vertex_attr(S, "shape", value = "ellipse") > plot(S, layout = L) > S <- set_vertex_attr(S, "shape", value = "hexagon") > plot(S, layout = L) > > proc.time() user system elapsed 5.15 1.17 5.36