Social network analysis (SNA) is the methodical analysis of social networks. Social network analysis views social relationships in terms of network theory, consisting of nodes (representing individual actors within the network) and ties (which represent relationships between the individuals, such as friendship, kinship, organizational position, sexual relationships, etc.)
Questions tagged [sna]
296 questions
0
votes
1 answer
Structural Measure of Interpersonal Influence
I'm trying to calculate a matrix of interpersonal influence based on the probability of a tie between two actors and the susceptibility to influence (Friedkin, 2001). For doing so, you start by a 13*13 matrix of direct ties between 0 and 1. The…

Mathias De Roeck
- 11
- 3
0
votes
0 answers
identify nodes that influence a focal node's betweenness
I would like to know the best way to identify the nodes(j,k) that influence the betweenness centrality of a focal node i. Since betweenness is based on the geodesics between j and k that pass through i, one way to do this is to get all of the…

tvg
- 388
- 2
- 13
0
votes
1 answer
creating multiple file types while plotting
I would like to produce a series of plots in both high-resolution and low-resolution versions, or stated differently using two different file types (.png and .eps). I'd like to know the best/least repetetive way to do this. I am using the gplot…

tvg
- 388
- 2
- 13
0
votes
0 answers
How to calculate the neighborhood of a graph with order 1.5?
I have a graph object g and would like to create a subgraph g_sub of the neighborhood of a set of vertices v_matches in g, with order 1.5.
In other words I want to find which vertices are connected to v_matches (order 1), and which vertices are…

timothyjgraham
- 1,142
- 1
- 15
- 28
0
votes
1 answer
"graph stack" in network class
How does one go about creating a "graph stack" in the network class for SNA commands that accept more than one graph? According to the documentation a graph stack should be of dimension m x N x N. I tried to create one as follows, but I get an…

tvg
- 388
- 2
- 13
0
votes
0 answers
Analyze multiple igraph objects at the same time
Currently I'm applying network analysis on multiple igraph objects. For example, I want to know the indegree and outdegree of actors in the network. The code that I use for this is as follows:
indeg2005 = degree(d2005, mode = "in")
outdeg2005 =…

Mathias De Roeck
- 11
- 3
0
votes
1 answer
Saving the results of each iteration of a for-loop in R as a network object using the filename
I'm attempting to run a loop to iterate through a number of adjacency lists saved as .csv files, convert them to edge lists, and network objects, and save each of these using the filename.
The problem is a) the code appears to cycle through the list…

Tom Davidson
- 737
- 1
- 8
- 16
0
votes
2 answers
Detect bi-cliques in r for bipartite graph
I am trying to recreate the Biclique Communities method (Lehmann, Schwartz, & Hansen, 2008) in R which relies on the definition of a Ka,b biclique. The example below shows two adjacent K2,2 bicliques - the first clique is {A,B,1,2} and the second…

JamesLee
- 155
- 7
0
votes
1 answer
network plot using gplot with node/point symbols
I am trying to produce a black-and-white network diagram using node symbols (point shapes) to differentiate node types, instead of using colors. However, I cannot find a way to do this using the gplot function in the package sna. Here's a simple…

tvg
- 388
- 2
- 13
0
votes
1 answer
How to use R to analyze kcore from csv file
Currently, I touched something about SNA and encountered the problem of how to use R to analyze the kcore network from file.
The format of csv file is like below:
//File
PointStart,PointEnd
jay,yrt
hiqrr,huame
Sam,joysunn
…

Meng Wang
- 29
- 5
0
votes
1 answer
Adding specific id attribute as labels in graph in igraph
I need to add the id attribute to my vertices as labels, and display them in the plot. Which I did with the following code:
V(novel)$label <- V(novel)$id
plot(novel)
However, I only want to display the id of the vertices where the weighted degree…

sabih4911
- 1
- 1
0
votes
1 answer
R: Generating network edgelist (igraph) from base table?
I’m trying to write a function that will read in a large base table (example below) and check if any of the unique entities (ID) can be linked via 15+ attributes (bank a/c, phone num, email, zip code…etc). No fuzzy matching required this time.
df <-…

Sean Mc
- 458
- 6
- 14
0
votes
1 answer
Generic method for converting a list to an edgelist
Let's say I have a list of strings:
list <- c("john", "carl", "suzanne")
Because they appear in the same list, I'm making a social network assumption that they are connected. In order to be able to convert this group to a graph, I need to make it…

histelheim
- 4,938
- 6
- 33
- 63
0
votes
1 answer
Calculating transitivity for a specified vertex ids from the list of ego-networks in igraph
I need to calculate local clustering coefficient for a huge bunch of egocentric networks with 1.5 depth. All the files are edgelists named after ego-s, and are stored in 'edgelist' folder. Here is my code to batch import it:
datanames <-…

semenoffalex
- 1
- 2
0
votes
1 answer
Shaded graph/network plot?
I am trying to plot quite large and dense networks (dput here). All I end up with is a bunch of overlapping dots, which does not really give me a sense of the structure or density of the network:
library(sna)
plot(data, mode =…

histelheim
- 4,938
- 6
- 33
- 63