Question: How to study interaction between a set of specified nodes using 'igraph' package when the network is quite dense?
0
gravatar for ishanee.india
4.2 years ago by
India
ishanee.india30 wrote:

I have 4 undirected graph with 1000 vertices and 176672, 150994, 193477, 236060 edges. I am trying to see interaction between a specific set of nodes (16 in number) for each graph. This visualization in tkplot is not feasible as 1000 vertices is already way too much for it. I was thinking of if there is some way to extract the interaction of these 16 nodes from the parent graph and view separately, which will be then more easy to handle and work with in tkplot. I don't want the loss of information as in what is the node(s) in he path of interaction if it comes from other than 16 pre-specified nodes. Is there a way to achieve it? I have their adjacency matrices and igraph objects to work with.

igraph network analysis R • 2.1k views
ADD COMMENTlink modified 4.2 years ago by raunakms1.1k • written 4.2 years ago by ishanee.india30
0
gravatar for raunakms
4.2 years ago by
raunakms1.1k
Vancouver, BC, Canada
raunakms1.1k wrote:

Use subgraph function. You just need to specify the igraph object for the graph and a vector of nodes you want to sub-select.

ADD COMMENTlink written 4.2 years ago by raunakms1.1k

Thankyou!

A bug cropped up: Warning message:
In .Call("R_igraph_subgraph", graph, as.igraph.vs(graph, v) - 1,  :
  At structural_properties.c:1945 :igraph_subgraph is deprecated from igraph 0.6, use igraph_induced_subgraph instead

well, i used induced.subgraph instead. But as i said, the nodes which will be interacting in between must not get lost. Here, only those 16 nodes are coming, if the interaction is via some node other than the one specified in 16, is not getting displayed. I want those nodes too in my subgraph.

ADD REPLYlink written 4.2 years ago by ishanee.india30
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 611 users visited in the last hour