search for: adjmat

Displaying 6 results from an estimated 6 matches for "adjmat".

Did you mean: ademas
2012 Dec 11
1
Dispatching on a dgCMatrix does not work.
...trix" a b c d e a . 1 1 . . b 1 . 1 . . c 1 1 . 1 1 d . . 1 . 1 e . . 1 1 . To check if the matrix defines and undirected graph, I have made the following functions/methods: is.UG <- function (object) { UseMethod("is.UG") } is.UG.dgCMatrix <- function (object) { is.adjMAT(object) && (max(abs(t(object) - object)) == 0) } Note: 1) is.adjMAT is homegrown and 2) I know there is an "isSymmetric" method, but I can't get that to work either. These functions are in a package and when I load the package I get: > is.UG(xx) Error in t.default(object)...
2009 Sep 11
2
Graph visualization
...graph' seems to be appropriate for this. An example in the package > mat <- rbind(c(0, 0, 1, 1), + c(0, 0, 1, 1), + c(1, 1, 0, 1), + c(1, 1, 1, 0)) > rownames(mat) <- colnames(mat) <- letters[1:4] > graph1 <- new("graphAM", adjMat=mat) > graph1 A graphAM graph with undirected edges Number of Nodes = 4 Number of Edges = 5 how can I plot the object graph1? Thanks in advance Arber [[alternative HTML version deleted]]
2012 Mar 27
2
drawing the graph with many nodes
...uot;,") colnames(test.matrix) <- gsub("X", "", colnames(test.matrix)) #drop first column drops <- c("") test.matrix<-test.matrix[,!(names(test.matrix) %in% drops)] test.matrix test.matrix<-data.matrix(test.matrix) am.graph<-new("graphAM", adjMat=test.matrix, edgemode="directed") am.graph plot(am.graph, attrs = list(node = list(fillcolor = "lightblue"),edge = list(arrowsize=0.5))) The file testgephi.csv is following. "","1","2","3","4","5" "1",393,55...
2007 Aug 28
4
Nodes & edges with similarity matrix
Hello, I apologise if someone has already answered this but I searched and googled but didn't find anything. I have a matrix which gives me the similarity of each item to each other. I would like to turn this matrix into something like what they have in the graph package with the nodes and edges. http://cran.r-project.org/doc/packages/graph.pdf . However I cannot find a method to
2012 Jun 04
1
Plotting with Rgraphviz
...t;, "f") > colnames(test.matrix)<-c("a", "b", "c", "d", "e", "f") > test.matrix a b c d e f a 0 0 0 0 0 0 b 1 0 1 0 1 0 c 0 0 0 0 0 0 d 0 1 0 1 0 1 e 0 0 0 0 0 0 f 1 0 1 0 1 0 > am.graph<-new("graphAM", adjMat=test.matrix, edgemode="directed") > am.graph A graphAM graph with directed edges Number of Nodes = 6 Number of Edges = 9 > plot(am.graph, attrs = list(node = list(fillcolor = "lightblue"), + edge = list(arrowsize=0.5))) There were 18 warni...
2011 May 05
0
problem with cor() using bigmemory
Hello, I have a rather large set of data I need to analyze, currently I need to work with a 200000 by 200000 matrix, I'm using the package bigmemory but so far I can only allocate a 66000 by 66000 matrix, when I increase those values I get the following error:   > AdjMat <- big.matrix(nrow=68000,ncol=68000) Cannot allocate memory BigMatrix.cpp line 225 Error in big.matrix(nrow = 68000, ncol = 68000) :    Error: memory could not be allocated for instance of type big.matrix As a part of my analyisis I need to calculate de correlation coefficient, but when I try...