TDARACNE:::ToTheGraph_timeShiftmax2 doesn't support more than 1000 edges
1
0
Entering edit mode
@sergisayolspuig-8816
Last seen 2.5 years ago
Germany

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

software error tdaracne • 1.0k views
ADD COMMENT
0
Entering edit mode
@zoppoli-pietro-4792
Last seen 6.2 years ago
United States

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

ADD COMMENT

Login before adding your answer.

Traffic: 797 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6