igraph-help
[Top][All Lists]
Advanced

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

[igraph] Error in stCuts function


From: Joren Kreuzberg
Subject: [igraph] Error in stCuts function
Date: Tue, 13 Nov 2018 08:33:28 +0100

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])

reply via email to

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