Displaying 1 result from an estimated 1 matches for "ourgraph".
Did you mean:
of_graph
2003 Dec 02
1
Trouble with syntax
Hello,
axsize <- max(i)
allsize <- axsize * axsize
x <- array(c(1:allsize), dim=c(axsize, axsize))
x[1:allsize] <- 0
x[i] <- 1
for (c in 1:axsize)
{
ourgraph <- data.frame(edges=x,
vertices=c(1:axsize), ith=c,
components=list(1),
communities=list(1), row.names=NULL)
browser()
When I get to browser, printing ourgraph$edges gives
NULL while printing x gives the matrix with the
correct values.
What am I writing wrong?
R...