Search
Question: TDARACNE:::ToTheGraph_timeShiftmax2 doesn't support more than 1000 edges
0
2.8 years ago by
Germany
sergisayolspuig40 wrote:

Hi,

the function ToTheGraph_timeShiftmax2 to get a DOT graph has the maximum number of edges hardcoded:

R> TDARACNE:::ToTheGraph_timeShiftmax2 function (network, name) {     row <- dim(network)[1]     col <- dim(network)[2]     title2 <- name     graph <- array(0, dim = c(1000, 4))     w <- 1

...

}

is there any reason for this limitation, or should actually be automatically calculated from the number of edges of the network? (or at least do a check before hand whether the network is too big to be exported, and prevent the code from stopping with a nasty error)

cheers,

Sergi

modified 2.8 years ago by zoppoli pietro10 • written 2.8 years ago by sergisayolspuig40
0
2.8 years ago by
United States
zoppoli pietro10 wrote:

Hi Sergi,

the reason the maximum number of edges hardcoded to 1000 is that the algorithm is supposed to work with small-medium networks.

1000 edge is far above the limits I suggest to use the algorithm, I didn't want people use it so far away from it's limits.

Probably I should have used a check there, but again, a network so big is above the aim of the algorithm.

Sorry for problem,

Pietro