Social Network Analysis dengan
NetworkX
Andreas Chandra
linkedin.com/in/chandraandreas
Contents
● Overview
● Connectivity
● Analyzing Graph
Overview
Social Network Analysis
convergeforimpact.com
What is?
Social network analysis [SNA] is the mapping and measuring of relationships and
flows between people, groups, organizations, computers, URLs, and other
connected information/knowledge entities.
Connection
Use Case
Network of U.S. political blogs by Adamic and Glance (2004)
Questions that answered by SNA
● Who is the influencer?
● How many luster of the network?
● How long one node to reach another notde?
Network Type
Directed & Undirected
Facebook Undirected
Twitter Directed
Instagram Directed
Email Directed
Definition
Node
Edge
Node
Edge Attributes
● Weight
● Color
6
Friend
Node Attributes
● Role
● Size Manager
staff
NetworkX
NetworkX
NetworkX is a Python package for the creation, manipulation, and study of the
structure, dynamics, and functions of complex networks.
Installation
pip install networkx
pip install --upgrade networkx
dependencies:
● NumPy (>= 1.12.0)
● SciPy (>= 0.19.0)
● pandas (>= 0.20.0)
● Matplotlib (>= 2.0.2)
● PyGraphviz and pydot (>= 1.2.3)
● PyYAML
● gdal
● lxml
Getting Started
import networkx as nx
import matplotlib.pyplot as plt
G = nx.Graph()
Basic Graph
Do It More
https://www.datacamp.com/community/tutorials/networkx-pytho
n-graph-tutorial

Social Network Analysis dengan NetworkX