r - How do I simply access the values of an "edge sequence" igraph object? -
i want access ids of vertices connected vertex u in graph g.
i utilize command e(g)[from(u)]
. generates next output:
edge sequence:
[9814] 122 -> 24
[9815] 122 -> 178
[9816] 122 -> 124
how access values 24, 178, , 124?
i realise may simple command, cannot find out how anywhere in documentation.
maybe simplest utilize neighbors()
function in first place:
neighbors(g, u, mode="out")
if want border sequence, then:
v(g)[ to(e(g)[from(u)]) ]
see
http://igraph.org/r/doc/structure.info.html http://igraph.org/r/doc/graph.structure.html http://igraph.org/r/doc/iterators.html
r igraph
No comments:
Post a Comment