I have a graphic graph and just want to get every edge from_idand to_id. For example:
g <- erdos.renyi.game(4, 1, type="gnm", directed=FALSE)
E(g)[1]
I want to get two variables v1, v2where v1 = 3and v2 = 1(equivalent v1 = 1and v2 = 3). I want to do this for all edges in a graph E(g)[x], where x is the loop variable. Is there any way to do this?
thanks
quine source
share