igraph is a free software package for creating and manipulating large undirected and directed graphs. It is written in C, but has interfaces to higher-level languages like R, Python or Ruby.

**0**

votes

**1**answer

22 views

### Create network files from “classic” dataframe in R - igraph

My goal is to develop a network visualization in R, starting from a "classic" data frame. I thus have to create two files: nodes and links.My current data set looks like this:Driver ...

**-1**

votes

**1**answer

25 views

### Create a Data.Frame of the Vertices of an iGraph

I would like to create a data frame of the Vertices of a Bipartite Graph created using iGraph. When I try this, I get the following message: x<- data.frame(V(graph))Error in as.data.frame....

**0**

votes

**1**answer

28 views

### Igraph in R how do you count the number of nodes with a specific degree, like degree=0 in a network

Igraph in R how do you count the number of nodes with a specific degree, like degree=0 in a network?I can find max and min nodes , but idk how to get the count of nodes equal to a specific degree.

**0**

votes

**0**answers

19 views

### iGraph - Fetch a Subgraph of Only Neighbors of One Node

I am looking at a dataset of books and individuals who have read each booke.g.book | readerHP7 | JaneHP7 | JackHP7 | MattHP5 | JaneHP5 | JackHP3 | MattHP3 | JackI created a ...

**1**

vote

**1**answer

25 views

### Average clustering coefficient of a network (igraph)

I want to calculate the average clustering coefficient of a graph (from igraph package). However, I am not sure which approach I should follow. library(igraph)graph <- erdos.renyi.game(10000, ...

**1**

vote

**1**answer

30 views

### Discard Bipartite Edges on igraph in R

I am looking to discard bipartite edges on iGraph so that I am only seeing those with greater than 3 memberships. I am looking at a dataset of students who have attended classes. I want to only see a ...

**2**

votes

**2**answers

32 views

### call a value among two values in one cell in a matrix

There are two vectors x: 1 3 5 7 & y: 2 4 6 8. I used the function outer to build a matrix(4*4) from all possible combinations between the elements in both vectors like:x<-c(1,3,5,7)y<-c(...

**2**

votes

**1**answer

21 views

### Merge edges by attribute/group in iGraph (R)

Given the graph below, I want to combine some of the edges by $name. However, it is easy to simplify a graph by merging based on the vertex they are connected to, but not by grouping them by a certain ...

**1**

vote

**1**answer

27 views

### Measure assortativity of vertices using igraph r

I need to measure the assortativity of vertices, not of the entire graph. How do I do this?Take the following graph:g <- sample_gnm(n=20,m=20)plot(g)V(g)$gender <- c("male","female")V(g)$...

**0**

votes

**1**answer

10 views

### How can you obtain a symmetric adjacency matrix of an induced subgraph?

The complete graph on 4 vertices is represented as an edgelist as follows:$ cat k4.edgelist 0 10 20 31 21 32 3Now, consider the following Python script using python-igraph:from igraph ...

**0**

votes

**0**answers

18 views

### Making tripartite network graph from a dataframe using graph

I'm trying to make tripartite graph from a dataframe of the following formatworker supervisor project typeJohn Chris p1 administrativeAmy Chris p1 ...

**0**

votes

**2**answers

5 views

### “igraph.plot” and “edge.lty” in R

I have organized my network data in a datasheet (header=TRUE), such as:n V1 V2 Year Influence Dialogic1 A B 1995 Coercitive Antagonism2 C D 1995 Normative ...

**0**

votes

**1**answer

8 views

### From table to iGraph

I have organized my data as follow:head(data1)n V1 V2 Year Influence Dialogic1 1 EXE MEC 1995 Coercitive Antagonism2 2 EXE MEC 1995 Coercitive Antagonism3 3 MEC CNE 1995 ...

**0**

votes

**0**answers

5 views

### Full or complete graph from supernodes

I am trying to do a complete graph from two different groups of nodes. The first one (A) has 8 vertices, and the second one (B) has 147 vertices. My first guess was doing this:g <- ...

**1**

vote

**1**answer

34 views

### strange matrix result from if else loop

The code below to fill a matrix with 1 if the vertex is adjacent to another vertex and 0 otherwise. I used this function for comparison but the resulted matrix is strange !!Rlibrary(igraph)#...