igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Error in stCuts function


From: Szabolcs Horvát
Subject: Re: [igraph] Error in stCuts function
Date: Tue, 13 Nov 2018 10:49:47 +0100

Hello Jorden,

I believe this is a bug in the igraph C core.

I have reported this bug on May 28.

https://github.com/igraph/igraph/issues/1102

Szabolcs

On Tue, 13 Nov 2018 at 09:57, Joren Kreuzberg <address@hidden> wrote:
Dear Igraph mailinglist members,

The following error occurs when using the stCuts function: "Error in stCuts(g1, source = V[7], target = V[8]) : At st-cuts.c:415 : Invalid root vertex id for dominator tree, Invalid value".

For the matrix I use in graph.adjacency and the code I use before running the stCuts function, please observe the stack.exchange post or the code below.

I hope someone can help me.

Best regards,
Jorden

[1,] 0 0 0 0 0 0 0 0 0  0  0  0  0
 [2,] 0 0 0 1 0 0 0 0 0  0  0  0  0
 [3,] 0 0 0 0 0 0 0 0 0  0  0  0  0
 [4,] 0 1 0 0 0 0 0 0 0  0  0  0  0
 [5,] 0 0 0 0 0 1 0 0 1  1  1  0  0
 [6,] 0 0 0 0 1 0 1 0 0  0  0  0  0
 [7,] 0 0 0 0 0 1 0 0 0  0  1  0  0
 [8,] 0 0 0 0 0 0 0 0 0  1  1  1  0
 [9,] 0 0 0 0 1 0 0 0 0  1  0  0  0
[10,] 0 0 0 0 1 0 0 1 1  0  1  0  0
[11,] 0 0 0 0 1 0 1 1 0  1  0  0  0
[12,] 0 0 0 0 0 0 0 1 0  0  0  0  0
[13,] 0 0 0 0 0 0 0 0 0  0  0  0  0

EdgesGroep <- as.matrix(EdgesGroep)
colnames(EdgesGroep) <- 1:dim(EdgesGroep)[1]
g1 <- graph.adjacency(EdgesGroep, mode="directed", weighted=NULL)
tkplot(g1)
V <- V(g1)
E <- get.edgelist(g1)
mode(E) <- "integer"
stCuts(g1, source=V[7], target=V[8])
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help

reply via email to

[Prev in Thread] Current Thread [Next in Thread]