3. Nodes & Edges
Un/directed, Un/weighted
Degree
In-Degree
Out-Degree
Topology
Graph Density
Meaures how many edges are in the graph compared to the maximum
possible number of edges (complete graph).
Diameter
Longest path between any two nodes in the network
Radius
Minimum eccentricity for any given node in the graph
Graph Basics
4. Real Networks
Properties
1. Growth: Networks are assembled one node at a time
and increase in size.
2. Preferential attachment: As new nodes join the
network, the probability that it will choose a given
node is proportional to the number of nodes that
target node already has.
“Rich Get Richer”
6. Cliques
• k-clique, where all nodes are adjacent to each other within the
subgraph.
• n-clique, where n is a positive integer, is a collection C of vertices in
which any two vertices u,v ∈ C have distance ≤n.
• p-clique, where p is a real number between 0 and 1, is a collection C of
vertices in which any vertex has ≥p|C| neighbors in C.
Trouble with Clique Targeting
1. Not resilient networks.
2. Uniformity in the way cliques are defined can lead to little to no
insights into that subgraph.
3. The clique might be a narrowing of a larger, more legitimate
community to be evaluated.
Finding Cliques
8. Node Centrality
Identifying important nodes
Betweenness Centrality
Measures how often a node appears in the shortest path betwe
Closeness Centrality
Average distance from a given node to all other nodes in the gra
9. Edge-Betweenness
(Hierarchical) Clustering
Girvan–Newman algorithm O(N^3)
1. Calculate betweenness of all edges in graph.
2. Remove edge with highest betweenness.
3. The betweenness of all edges affected by the removal is rec
4. Rinse and repeat until no edges remain.
Expensive, Yet Intuitive Decomposition of Graph
10. Case Study: Finding @VTCodeCamp
Twitter Communities
Methodology
Network
Twitter users as nodes, follows as directed edges.
1. Find all followers of @VTCodeCamp, recursively find
next level of users.
2. Removing @VTCodeCamp from final datasets.
3. Twitter RESTful Search API v1.1
4. Node.js Client
5. MongoDB 3.0 Aggregation Framework
6. GEXF - Graph Exchange Xml Format
7. Gephi & Gephi Toolkit (JVM) - Analysis & Viz