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(Rgraphviz) Loading required package: graph Loading required package: BiocGenerics Loading required package: generics Attaching package: 'generics' The following objects are masked from 'package:base': as.difftime, as.factor, as.ordered, intersect, is.element, setdiff, setequal, union Attaching package: 'BiocGenerics' The following objects are masked from 'package:stats': IQR, mad, sd, var, xtabs The following objects are masked from 'package:base': Filter, Find, Map, Position, Reduce, anyDuplicated, aperm, append, as.data.frame, basename, cbind, colnames, dirname, do.call, duplicated, eval, evalq, get, grep, grepl, is.unsorted, lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind, rownames, sapply, saveRDS, table, tapply, unique, unsplit, which.max, which.min Loading required package: grid > ## input directly from file > xmlfile <- system.file("pathways/kegg_hsa00510.xml", package = "WayFindR") > graf <- KGMLtoIgraph(xmlfile) Warning message: In KGMLtoIgraph(xmlfile) : KGML: Some nodes have no edge connections! > set.seed(24086) > L <- igraph::layout_with_kk(graf) > plot(graf, layout = L) > ## FAILS because of multiple edges: > try( RA <- as.graphNEL(graf) ) Error in as_graphnel(G) : multiple edges are not supported in graphNEL graphs > > xmlfile <- system.file("pathways/WP3850.gpml", package = "WayFindR") > G <- GPMLtoIgraph(xmlfile) > set.seed(13579) > GN <- as.graphNEL(G) > plot(GN) > > proc.time() user system elapsed 11.39 1.85 17.09