search for: layoutgraph

Displaying 2 results from an estimated 2 matches for "layoutgraph".

2010 Jun 03
1
Memory leak using Rgraphviz
...nstalled R 2.10.1 through the package manger. I then installed Rgraphviz 1.24 and graph 1.26 through R. I'm trying to understand why a complex function my team wrote causes R's memory footprint viewed through top to increase every time it's run. I traced the increase in memory usage to layoutGraph() and wrote the following short function that reproduces the problem: foo <- function () { library(Rgraphviz) set.seed(123) V <- letters[1:26] M <- 1:2 g1 <- randomGraph(V, M, 0.5) edgemode(g1) <- "directed" x <- layoutGraph(g1,name="foo",layoutT...
2008 Feb 12
0
[Fwd: Re: controlling the edge linewidth in Rgraphviz]
Hi Adrian, even better would be this: 1.) Install the latest Rgraphviz devel version 2.) Use the new API for graph rendering: library(Rgraphviz) example(randomEGraph) x <- layoutGraph(g1) graph.par(list(edges=list(lwd=2))) # if you want to set lwd=2 for the whole session # or if you just want to change this for your one graph: renderGraph(x, graph.pars=list(edges=list(lwd=2))) There is a Vignette that explains all the new stuff. Florian > http://finzi.psych.upenn.edu/R/Rhel...