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
3
votes
1 answer
Format for importing edgelist into igraph in python
What is the edgelist format accepted by igraph for import into python? What should the textfile that contains my weighted edges look like?
I've used igraph with R before, but don't have a working R installation on the machine I need to use---so I'm…

Mittenchops
- 18,633
- 33
- 128
- 246
3
votes
1 answer
R SNA: Creating a adjacency matrix containing all actors but only values of a subset
My problem is the following:
I am using the R SNA package for social network analysis. Lets say, my starting point is an edgelist with the following characteristics. Every row contains a firm name, the ID of a project they are involved and further…

Daniel S. Hain
- 77
- 7
3
votes
0 answers
Using Scala SNA
I want to use SNA in scala. I am using sbt to manage my dependencies.
At SNA you can see import net.java.dev.sna.SNA
But I can't find it in Maven
How would I use SNA in my Scala project if I can't find it in maven? There is also a Svn trunk But I…

Maik Klein
- 15,548
- 27
- 101
- 197
2
votes
0 answers
How can I calculate the number of geodesics (shortest paths) going through a vertex or an edge in networkx?
The betweeness function in igraph of R defines the edge betweeness as the the number of geodesics (shortest paths) going through.
However, the edge_betweenness_centrality in networkx of python defines it in a traditional way, which seems to require…

Plumber
- 114
- 4
2
votes
1 answer
How to export igraph result in csv file in python?
I wrote code below to show graph with igraph package, But I don't know How can I export igraph result in csv file in python? and my another question is how can I add label?
import igraph as ig
import pandas as…

user12217822
- 292
- 1
- 5
- 16
2
votes
1 answer
extract ego_networks/sub-network in igraph
I have a graph of 169 vertices and 513 edges. I need to extract all ego_networks or sub_networks to get each node with its direct neighbours. I managed to do that using ego(graph) that produces each nodes with its direct neighbourhoods. However, the…

Tamim
- 25
- 5
2
votes
1 answer
compare 2 subgraph with Hamming distances in R
I created a graph (igraph) from interview data. I would like to compare the sub-graphs of each interview to have a relative distance from each one.
I found that I could use Hamming's distance. There are a lot of packages that offer functions to…

delaye
- 1,357
- 27
- 45
2
votes
2 answers
Network with three-dimensional edgelist?
I have data which provides information on flows by actor c, broken down by inputs originating from source s, to partner p.
Network data normally has only one information: Data / Information flows from A->B, B->C etc.
However, my data shows which…

lupo404
- 55
- 5
2
votes
2 answers
How to compute closeness centrality measure on a network with disconnected components in R?
I want to compute closeness centrality measure on a network with disconnected components. closeness function in igraph does not give meaningful results on such graphs. (see)
Then I came accross this site where it is explained that closeness can be…

Leyla Alkan
- 355
- 3
- 12
2
votes
0 answers
Pseudo-R^2 Measures from QAP Logistic Regression in R (netlogit in sna package)
I need to better understand the output from netlogit in the sna package in R. Below you find an example posted online (https://rpubs.com/pjmurphy/338798), which provide a basis for my questions:
The results provide two Pseudo-R^2 Measures,…

Per Becker
- 21
- 1
2
votes
1 answer
how to find degree centrality of nodes in the community partitions structure using networkX?
I have used partition = community.best_partition(test_graph) to get partitions from the networkX graph. I got a dictionary like this:
{node0: 0,
node1: 0,
node2: 0,
node3: 1,
node4: 1,
node5: 1,
node5: 2,
node6: 2,
...
}
in which keys are…

Guram Keretchashvili
- 47
- 6
2
votes
1 answer
Creating a weighted network from co-occurence of hashtags from a dataframe
I have a dataframe of tweets where one of the columns has information about the hashtags contained in the tweet (tweets_df.hashtags) as a list of hashtags.
>> tweets_df.hashtags
0 [dkpol]
1 …

Tobias P. G.
- 827
- 8
- 15
2
votes
3 answers
How to construct an edgeliste from a list of visited places (effectively)?
My original data.table consists of three columns.
site, observation_number and id.
E.g. the following which is all the observations for id = z
|site|observation_number|id
|a | 1| z
|b | 2| z
|c …

Andreas
- 6,612
- 14
- 59
- 69
2
votes
1 answer
Cytoscape.js - Unable to calculate degree centrality
I've been trying to loop through each of the nodes in my network chart to calculate the degree centrality of the nodes. Have been able to do so for other normalized centrality measures, but did not get any success with the unnormalized ones. Below…

ZPeh
- 592
- 1
- 7
- 18
2
votes
0 answers
social network analysis using python
I have two csv files. names.csv is containing name of person and its corresponding node and nodelinks.csv file is containing the link weight between nodes(persons). nodelinks.csv contains information about how many times a person calls other…

klaptor
- 115
- 10