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
2
votes
0 answers
How to find the pattern subgraphs in original graph?
I have a graph. One can see that the complect subgraph A<->B<->C and E<->D<->F (pattern) occurs twice in the graph. I found the motifs and took 1st and 7th motifs from the list of igraphs.
libraty(igraph)
el <- matrix( c("A", "B",
…

Nick
- 1,086
- 7
- 21
2
votes
0 answers
ggnetwork::geom_nodes() requires more colors than there are nodes
Load ggnetwork, network, sna, igraph, and ggplot:
library(igraph)
library(network)
library(sna)
library(ggnetwork)
library(ggplot2)
Create an igraph object with five vertices and two edges:
test <- structure(list(5, TRUE, c(0, 3), c(4, 1), c(0,…

mkk
- 879
- 6
- 19
2
votes
1 answer
R - Create a list of network objects based on variable ID
I am new to network analysis, so I apologize in advance for any inconsistencies or mistakes in my question.
I have an edgelist where each edge represents a Twitter mention (from userID to userID) within a specific conversation (convoID).
The same…

Teresa G.L.
- 21
- 2
2
votes
0 answers
How can we extract complete retweet network of a tweet
I want to make complete retweet network of a tweet. for example, user A tweet which was retweeted by 2 of his followers B and C. D and E which were followers of B retweeted the same tweet retweeted by B.
when I write python code using twitter API it…

Khubaib Ahmed
- 21
- 3
2
votes
0 answers
Plot iGraph (R) from dot file
I've been trying to get a .dot file into iGraph, but I run into some issues and only get it semi-working.
Here's the .dotfile:
digraph "" {
0 [color="[ 1. 0.7812 0.4975 1. ]", copynr=1, gene=None, label=3473, type=tf, typeLabel="tf…

Brem
- 21
- 1
2
votes
1 answer
turning a weighted edgelist into an unweighted in r
I have data on every interaction that could and did happen at a university club weekly social hour
id1 id2 timestalked date
1 2 1 1/1/2010
1 3 0 1/1/2010
...
100 2 4 …

CJ12
- 487
- 2
- 10
- 28
2
votes
1 answer
Is it possible to get coordinates from network plots?
I'd like to reproduce a network graph with the same (or close) layout. I know that igraph has the tkplot.getcoords() function. I'd like to copy/get/set.seed a set of vertex coordinates based on the results of gplot, which is the SNA package's…

elliot
- 1,844
- 16
- 45
2
votes
1 answer
How do you create a networkx function for eigenvector centralization for a whole network? (Freeman)
The question is: How do you compute eigenvector centralization for a graph using networkx?
(As in, not for individual nodes, but for the whole graph for comparing nodes, using Freeman's method for doing this).
I need to compare a number of…

Aldorath
- 33
- 9
2
votes
0 answers
Does column order matter when using hierarchical clustering?
Does column order matter when using the hierarchical clustering in R's heatmap.2 function? For some reason, the clusters are changing when I change the order of the columns in the CSV file.
Dataset 1 looks like this:
A B C D E F G …

jj987246
- 105
- 6
2
votes
0 answers
Free up RAM for ERGM Model R
I'm attempting to run a large amount of data through the ergm function in R. By large, I mean my network graph object has 4,300 vertices and approximately 470,000 total edges. Covariates X,Y, and Z are all categorical data types. When I run this…

YimYames
- 99
- 1
- 12
2
votes
0 answers
How can I measure graph statistics at multiple points in time (slices) using networkDynamic and tsna?
I have a large data frame containing transaction data. Each transaction refers to a person contributing to an artifact (e.g. a developer modified a file).
I strive to convert this data into a bipartite networkDynamic graph, where persons and…

Mischa
- 623
- 5
- 17
2
votes
1 answer
Retrieve 1st Degree Connections and 2nd Degree Connections for All Nodes in Igraph
I have an igraph where I would like to extract all of the 1st degree connections of each node along with the 2nd degree connections. The tables need to be separate though.
Full reproducible code with picture of graph is below:…

nak5120
- 4,089
- 4
- 35
- 94
2
votes
1 answer
How can I efficiently activate an edge attribute at multiple times in a networkDynamic object in R?
I want to construct a networkDynamic object in R from transaction data where each line represents a contribution by a person to a document. Multiple contributions should be represented as an increase in edge weight instead of creating multiple…

Mischa
- 623
- 5
- 17
2
votes
1 answer
How can I render a networkDynamic network using the MDSJ rendering engine in R?
I would like to render a dynamic network in R using the fast MDSJ library. Unfortunately, however, all the vertices' coordinates seem to be 0,0 using this rendering engine, which is not the case when using one of the other layouts (kamadakawai or…

Mischa
- 623
- 5
- 17
2
votes
0 answers
Gephi 0.9.1. Issues in exporting edges color with sigma.js
I'm having troubles when exporting my graph with the sigma.js module from Gephi. The JSON format doesn't store the colors of the edges. I'd like to export the color of the parent node for each edge of my graph, instead of that, I have a…

Bérengère
- 21
- 4