简体   繁体   中英

igraph read graph hang in OS X

I use igraph r package. I have a ncol formatted graph file and uses

g <- read.graph('~/tmp/graph.ncol', format = 'ncol', weights="yes")

to read to memory. While this command and graph file runs fine for a few minutes under Ubuntu 14.04. Using the same machine with OS X 10.10 the command runs and never ends. I also tried another same graph in graphml format with same result.

This is a macbook pro that after upgrading to OS X 10.10, the refit/refind no longer works for me to boot into 14.04, so I decided to use OS X for a while and encountered this. The igraph package is installed by source in ubuntu while installed by binary from cran in OS X. I' ve also tried using the source package to compile igraph r package locally and got the same hanging result. Anyone experience similar things? Not sure if it is an OS X 10.10 thing.

It turns out that it only happens when the file path includes ~ like ~/tmp/graph.txt , that it begins to use tempfile and calling read.graph.toraw that causes the trouble. I can avoid using that ~ . This is a workaround good enough for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM