I have a large igraph where the vertex of interest were extracted, then out of that subgraph, nodes with the description
of interest were extracted.
Now I want to extract the edges with attributes corresponding to those nodes with the description of interest.
I tried with edges.table <- E(subgraphGRN)[from(genes$Names)]
but I would like to get the attributes as well.
Any suggestions?
maybe E(subgraphGRN)[[from(genes$Names)]]
with double brackets. Double brackets provides you with all the information of the edge vector.
Also, maybe E(subgraphGRN)[[from(genes$Names)]] %>% subgraph.edges(graph = subgraphGRN, eids = .) %>% as_data_frame()
if you want to use the information for non-graph processing.