search for: vcount

Displaying 16 results from an estimated 16 matches for "vcount".

Did you mean: count
2009 Apr 20
1
Matrix package,solve() errors and crashes
...exponent=1, rescale=FALSE, tol=1e-07) { ## remove loops if requested if (!loops) { graph <- simplify(graph, remove.multiple=FALSE, remove.loops=TRUE) } ## sparse adjacency matrix d <- get.adjacency(graph, sparse=TRUE) ## sparse identity matrix id <- spMatrix(vcount(graph), vcount(graph), i=1:vcount(graph), j=1:vcount(graph), x=rep(1, vcount(graph))) id <- as(id, "dgCMatrix") ## solve it ev <- solve(id - exponent * d, tol=tol) %*% degree(graph, mode="out") if (rescale) { ev <- ev/sum(...
2009 May 15
1
Matrix package,solve() errors and crashes Please help
...s#toc6 *bonpow.sparse <- function(graph, nodes=V(graph), loops=FALSE, exponent=1, rescale=TRUE, tol=1e-07) {* * ## remove loops if requested * * ## sparse adjacency matrix d <- get.adjacency(graph, sparse=TRUE)* * ## sparse identity matrix id <- spMatrix(vcount(graph), vcount(graph), i=1:vcount(graph), j=1:vcount(graph), x=rep(1, vcount(graph))) id <- as(id, "dgCMatrix")* * ## solve it ev <- solve(id - exponent * d, tol=tol) %*% degree(graph, mode="all")* * if (rescale) { ev <- ev/su...
2009 Apr 17
0
Matrix package,solve() errors and crashes"
...exponent=1, rescale=FALSE, tol=1e-07) { ## remove loops if requested if (!loops) { graph <- simplify(graph, remove.multiple=FALSE, remove.loops=TRUE) } ## sparse adjacency matrix d <- get.adjacency(graph, sparse=TRUE) ## sparse identity matrix id <- spMatrix(vcount(graph), vcount(graph), i=1:vcount(graph), j=1:vcount(graph), x=rep(1, vcount(graph))) id <- as(id, "dgCMatrix") ## solve it ev <- solve(id - exponent * d, tol=tol) %*% degree(graph, mode="out") if (rescale) { ev <- ev/sum(...
2006 Oct 12
0
Privates example? (fwd)
...TRUE; + aw->disablePostprocessFX = TRUE; else - w->disablePostprocessFX = FALSE; + aw->disablePostprocessFX = FALSE; if (aw->model) { @@ -3180,13 +3189,13 @@ if (w->vCount == 0) { // reset - w->indexCount = 0; - w->texCoordSize = 4; + aw->indexCount = 0; + aw->texCoordSize = 4; } - vSize = 2 + w->texUnits * w->texCoordSize; + vSize = 2 + w->texUnits * aw->...
2007 Oct 09
3
igraph and plotting connected components
Hello there, I am using the igraph package to build graphs from my data. If I plot a graph though, it's not easy for me to see what's going on. Does anybody know how to rearrange a graph to get a plot without too many crossing lines? Maybe other packages? Thanks a lot in advance for any pointers, -- D --------------------------------- [[alternative
2017 May 01
4
RFC: Stop using redundant PHI node entries for multi-edge predecessors
Hi, On Mon, May 1, 2017 at 8:47 AM, Daniel Berlin via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> Today, the IR requires that if you have multiple edges from A to B >> (typically with a switch) any phi nodes in B must have an equal number of >> entries for A, but that all of them must have the same value. > >> This seems rather annoying.... >> 1) It
2010 Oct 13
1
bwplot change whiskers position to percentile 5 and P95
...nction(x, y, ..., X, subscripts){ panel.grid(v = -1, h = 0) panel.bwplot(x, y, ..., subscripts = subscripts) X <- X[subscripts] xmax =max(x) X <- tapply(X, y, unique) Y <- tapply(y, y, unique) tg <- table(y) panel.points(X, Y, cex=3, pch ="|" , col = "red") #vcount <- tapply(v1, v2, length) panel.text((xmax-0.2), (Y-0.15), labels = paste("N=", tg)) }) [[alternative HTML version deleted]]
2009 Dec 04
1
R igraph clusters component
Hi R-users, I'm using igraph for an undirected graph. i used clusters() igraph function to know the component size(subgraphs) as shown bellow: c <-clusters(g)    # component sizes size <- sort(c$csize, decreasing=TRUE) cat("Top 20 cluster of the graph","\n") for (i in 1:20) {   cat(i,"  size:",size[i] ,"\n") } Can anyone help how to extract the
2011 Aug 10
1
igraph - designing graph plot by attributes
Hi, I'm working on some social networks and I managed to create the graphs with labels and edges weight, but I would also like to change the size of the vertices according to the age of the persons in the network and the shape according to the gender. Now for the age, I have people with ages between 20 and 78, and I would like to have 4 categories (sizes): 20-35, 36-50, 50-65, >65. I have
2011 Apr 15
1
Can't use attributes from gml file in Cytoscape
Hello, I am exporting a graph in "gml" format from igraph 0.5.5. When I open the file in Cytoscape v.2.7 I can't map the color attribute that I assign to the graph when I export it from igraph. Could anyone help me in this? Thanks. -- Warm Regards, Sandeep Amberkar BioQuant,BQ26, Im Neuenheimer Feld 267, D-69120,Heidelberg Tel: +49-6221-5451354 [[alternative HTML version
2010 Jul 14
2
send out put to file in R
Hi I am using igraph package in R. My goal is to read a network (in "pajek" format) and decompose the network into components. In addition, I am also interested in sending this output to to a file. I am having problem in while writing to a file! my code looks like this g <- read.graph ("F://test.net", "pajek") compo <- decompose.graph(g,
2009 Feb 04
1
igraph: error when setting size and shape of vertices
When the shape of all vertices is set to "square" and the size of the vertices is also set, one get following error (commands attached): Error in l[[which.min(sapply(l, function(p) (p[1] - x0)^2 + (p[2] - y0)^2))]] : attempt to select less than one element Is there a way to solve this problem? Robbie ## Load the igraph package library(igraph) ## Create and plot a small graph
2011 May 05
1
Looping over graphs in igraph
Hi, I'm trying to do some basic social network analysis with igraph in R, but I'm new to R and haven't been able to find documentation on a couple basic things: I want to run igraph's community detection algorithms on a couple thousand small graphs but don't know how to automate igraph looking at multiple graphs described in a single csv file. My data look like something in
2008 Sep 14
3
Please help me in Converting this from C# to R
Random r = new Random(); DirectedGraph<SimpleNode> graph = GetGraph(); decimal B = 0.1m; decimal D = 0.05m; int nodes = graph.NodesCount; decimal[] E = new decimal[nodes]; decimal[] P = new decimal[nodes]; for (int i = 7; i <= 10; ++i) P[i] =
2006 Oct 03
6
Tried out Beryl (Animation pugin)
Hi I just tried out the new 0.1.0 release of beryl. Generally I do like the compiz fdo version, because I like the gconf integration and the metacity theme support in gwd. Also I think their configuration system is a complete mess, this beryl settings manager is completly bloated in my opinion. Anyway, I noticed they have quite a lot of plugins. While I found most of them nothing special, the
2010 Oct 15
0
nomianl response model
...nction(x, y, ..., X, subscripts){ panel.grid(v = -1, h = 0) panel.bwplot(x, y, ..., subscripts = subscripts) X <- X[subscripts] xmax =max(x) X <- tapply(X, y, unique) Y <- tapply(y, y, unique) tg <- table(y) panel.points(X, Y, cex=3, pch ="|" , col = "red") #vcount <- tapply(v1, v2, length) panel.text((xmax-0.2), (Y-0.15), labels = paste("N=", tg)) }) [[alternative HTML version deleted]] ------------------------------ Message: 38 Date: Wed, 13 Oct 2010 06:52:41 -0700 (PDT) To: r-help at r-project.org Subject: [R] NA with lmList Message-I...