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
1
vote
2 answers
Subsetting data.frame in in specific order in R (for setting vertex attributes)
I have information in a data.frame containing of two columns e.g.:
name age
a 10
b 20
c 30
and I have a list of names c b d. Now I want to obtain a data.frame (or list or anything) of the attributes of the original data frame in the…

sheß
- 484
- 4
- 20
1
vote
1 answer
how to make linked data/edgelist in R
List data "lt" is below.
[[1]]
"f24j" "mirror" "heliostat" "reflect" "photo" "solar" "sun"
[[2]]
"imag" "radiation" "sens" "detect"
[[3]]
"mesur" "chas" "captur"
...
I…

user3317871
- 9
- 3
1
vote
1 answer
Remove vertices based on some values of an vertices' attribute
I have a graph with the attribute color (numbers) that represents communities obtained with fastgreedy.community. Some of those communities are just compound by few vertices (5 or less).
1 I would like to remove them, ideally with a function that…

Rafael
- 617
- 3
- 6
- 22
1
vote
1 answer
Social Network Analysis - Influence Maximization
I would like to find the k most influential nodes for maximizing the information diffusion. I select the nodes based on high degree and nodes belonging to different communities. I would like to increase the priority of nodes having recent timestamp…

vasu
- 31
- 1
- 7
1
vote
1 answer
Listing triads in a multi-edge graph
Given this graph:
import igraph as ig
g=ig.Graph.Erdos_Renyi(10, 0.5, directed=True)
we can find its triad census easily with the triad_census function:
tc = g.triad_census()
If we print 'tc', we get something like:
003 : -2147483648 | 012 : 5 |…

alberto
- 2,625
- 4
- 29
- 48
1
vote
1 answer
statnet network missing vertexes
I am using network claas from statnet in R.
They have some tutorials in statistical software journal. So I founf information about 'na' attribute for vertexes and edges. But I can not find any information in manual or the Internet about this for…

Yaroslav Kishchenko
- 475
- 1
- 4
- 15
1
vote
2 answers
For-Loop: getting object names into plot titles and file names
I have about two dozen networks that I want to plot using the same layout (they all share the same vertices). I'm new to R and igraph, so I have come up with this solution, which probably isn't very elegant. Now I'm stuck though. I'd like to know…

Markus D
- 187
- 1
- 3
- 10
1
vote
1 answer
R: sna (social network analysis) package: data frame to adjacency matrix
I'm hoping for some more transformation help. Say I have a data frame:
df = data.frame(source = c("a","a","b"),
target = c("b","c","d"),
weight = c(1,1,1))
where the row: source = i | target = j | weight = w…

user32259
- 1,113
- 3
- 13
- 21
1
vote
0 answers
twitter followers connectedness R Python
I'm trying to get an adjacency matrix of the followers of an institution in Twitter with the connections between them. I want to see how do the followers relate to each other. I know what to do from the adjacency matrix on, igraph and statnet…

fioghual
- 509
- 3
- 11
0
votes
0 answers
Problem with Igraph (Rstudio) to graph customized images on nodes
I want to draw a set of nodes with different flags of the countries the nodes belongs to. In a component there are 20-30 nodes and they are from different countries, and I am trying to draw them with the flags of their countries.
I tried to assign…
0
votes
0 answers
Igraph error: "Weight vector must be positive. Invalid value" possible solutions
As most of you know, Igraph gives error when weight values are not positive, so even when they are "0".
The error is this one:
Weight vector must be positive. Invalid value
I've seen other questions on Stack and answers suggests to change the value…

Antonio Alaia
- 23
- 6
0
votes
0 answers
Converting adjacency matrix into table with from/to/frequency
I have a situation like this one:
id
a
b
c
a
0
0
0
b
0
0
3
c
0
11
2
The observations are frequencies of how many times a contacts b, ecc...
I need a dataframe like this…

Antonio Alaia
- 23
- 6
0
votes
1 answer
Tweepy get followers list
I need to obtain all the followers of a Twitter account that has aprox 125K follores.
So I run this code:
import tweepy
auth = tweepy.OAuth2AppHandler(api_key, api_secret)
api =…

anitasp
- 577
- 4
- 13
- 35
0
votes
0 answers
Is there an R function for isolating infection cascades in a network graph
I am trying to isolate contagion/diffusion cascades of infections in a network graph. For example if we create the following graph:
library(igraph)
set.seed(10)
g <- sample_gnp(20, 1/5)
g <- set_vertex_attr(graph = g, name = "infection_time",…

LBPM
- 25
- 5
0
votes
1 answer
Twilio with Silent Network Authentication
Would like to know any example (nodeJS) on the Silent Network Authentication feature with Twilio.
Also, can this be used to verify a local non-twilio telephone number and there by we can use the number as outgoing caller id?
Please help.

Seby K P
- 17
- 4