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
Ordering cluster list by cluster size, R igraph
I have a network (g) with thousands of clusters, however I can't seem to figure out how to order them by size. It looks like the membership attribute sorts clusters somewhat arbitrarily. For example:
c <- clusters(g)
c$membership
gs <-…

Zlo
- 1,150
- 2
- 18
- 38
0
votes
1 answer
How to get list of tweets that share the same story but the URLs might be different in each tweet
I am interested in finding all tweets that share a given url (e.g. this story). I am not looking for how many re-tweets a single tweet gets or how many times a page is shared on Twitter (i.e. look at the page's social shares counter). Instead, I am…

user3093455
- 393
- 1
- 5
- 8
0
votes
1 answer
Importing a weighted adjacency matrix using the Statnet package in R
I am trying to analyze a weighted 1 mode projection of a 2 mode network in R using bipartite and the statnet suite (consisting of network, sna, and several other packages) on a Unix server. The projection works fine using a mix of bipartite and…

Adam J.
- 3
- 1
0
votes
0 answers
graph modularity in JUNG
I need to calculate modularity on a small graph and I have stumbled across this project which provides a class to compute Newman modularity score. However, the method needs a module membership:
public static double computeModularity…

user299791
- 2,021
- 3
- 31
- 57
0
votes
1 answer
node degree distribution using R and igraph
I would like to create a histogram of the node degree distribution of a social network. I have file called socialNetwork.csv with two columns representing edges between userA and userB.
Here is how I load the data into igraph:
library(igraph)
g =…

gruber
- 28,739
- 35
- 124
- 216
0
votes
1 answer
Create dendrogram on communities, not nodes in igraph
I am trying to create a dendrogram of the communities only of a network. The example code below gives me a dendrogram of all the nodes, but as I work with a relatively large dataset, I would like to create a dendrogram of only the comunities,so that…

user3731465
- 93
- 1
- 7
0
votes
1 answer
Create an edge list from co-authership network in R
I am trying to create an edge list with igraph for a co-authorship network analysis project. My data is stored in a way that every author of a specific paper is listen in rows, meaning that every paper is an observation and the columns contain the…

user3731465
- 93
- 1
- 7
0
votes
1 answer
how to convert a python dictionary into a graph object, NetworkX
I'm new to python, and I am trying to convert a dictionary into a graph object in Networkx. The dictionary:
dict = {'key1': ['value1', 'value2', 'value3'], 'key2': ['value1', 'value2']}
I want the keys to be an ego node, and values to be their…

Zlo
- 1,150
- 2
- 18
- 38
0
votes
2 answers
Combining row entries in two files while adding weights where the names are common
I am facing a problem while trying to combining two data frames into one.
Data frame structure :1
FROM TO WEIGHT
1 abc_1 Dummy 100
2 abc_2 Dummy 20
3 xyz_1 abc_3 40
Data frame…

srikantrao
- 188
- 4
- 12
0
votes
1 answer
Are there any matlab toolbox or software to simulate diffusion in social network graph?
I have a dataset of a directed graph like this:
-Directed graph (each unordered pair of nodes is saved once): CA-HepTh.txt
-Collaboration network of Arxiv High Energy Physics Theory category (there is an edge if authors coauthored at least one…

Ehsan
- 311
- 4
- 7
0
votes
0 answers
Simplifying e-mail network with igraph
I'm analysing a e-mail network. I loaded the following information in a directed igraph on R:
Vertex types: person, e-mail
V(g)[ type == "person" ]
V(g)[ type == "email" ]
Edge types: sends, receives
E(g)[ type == "send" ]
E(g)[ type == "receive"…

Mulone
- 3,603
- 9
- 47
- 69
0
votes
1 answer
igraph does not show the right network I imported
I would like run some sna analysis. I work with RStudio and the igraph Package.
My input data is from a text file (created from excel as a tab seperated text file).
The data file has 3 columns. 1st and 2nd row are network data (vertices) and the…

SWR
- 507
- 1
- 8
- 17
0
votes
1 answer
Keeping edge values in graph after converting it to a network object in R
Note 1: I'm using the R packages "network" and "sna"
Note 2: My original data are in edgelist format in a .csv file.
I've been looking for the best way to read in edgelist data into R. At first sight, this is simple.
data <- read.csv("file.CSV",…

Frederik Pederik
- 13
- 3
0
votes
1 answer
Tnet issues for R SNA
I'm getting two unexpected errors for tnet functions in R. My edgelist:
Person Event
1 a
2 b
3 c
edgelist <- as.matrix("file.csv")
edgelist_in_igraph <- graph.edgelist(edgelist)
edgelist_in_tnet <-…

Olga Mu
- 908
- 2
- 12
- 23
0
votes
1 answer
igraph fill in node attributes after importing edgelist in Ncol() format?
I'm not sure if this is a merge or two separate imports, or something I should reconsider entirely. I started using igraph originally after playing in gephi, where I would always do a 2-stage import, first the edges, then node-data. Is this a…

Mittenchops
- 18,633
- 33
- 128
- 246