igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Dominator_Tree Not Recognizing Vertex ID


From: Tamas Nepusz
Subject: Re: [igraph] Dominator_Tree Not Recognizing Vertex ID
Date: Thu, 8 Jun 2017 11:05:15 +0200

Hi,

It could be the case that dominator_tree() does not support specifying the root vertex by name. (It should, so if it is the case then it's a bug). A workaround is to pass the _index_ of the vertex that has the desired name, e.g.:

root_vertex_index <- which(V(ScotusGraph)$name == "182568")
dominator_tree(ScotusGraph, root=root_vertex_index, mode="out")


T.

On Mon, Jun 5, 2017 at 10:07 PM, Natalie Gallagher <address@hidden> wrote:
Hello Igraph Mailing List,

I'm reaching out because I'm running into trouble with dominator_tree in the igraph for R package. (I appear to have the same problem as this unsolved StackExchange post). I have a very large unidirectional citation network (R data attached). I'm trying to use dominator_tree and it keeps throwing an an "unknown vertex selected" error, as follows:


The nodes have numeric strings as names, and the graph seems entirely normal in every other way. 

Anybody have advice on this? Has anybody else run into this? Thanks!

Best Wishes,
Natalie Gallagher

--
Northwestern University | Graduate Student
Cognitive Psychology | Mosaic Lab
Social Psychology | Social Cognition Lab





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