1/46
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Community
A subset of nodes within a graph such that the connections between these nodes are denser than the connections with the rest of the network.
Strong Community
Every node in the community has more connections internally to the community than externally.
Weak Community
Every node in the community has more connections externally than internally.
Strong Community Formula
For all vertices vi in a subgraph Vc, degreevc(vi) > degreenot vc(vi)
Weak Community Formula
The sum of all vertices’ degrees in the subgraph compared to the sum of all vertices’ degrees in the subgraph compared to outside the subgraph.
Length of a chain
The number of edges it contains.
Distance between two vertices
The length of the shortest chain between those vertices.
Graph diameter
The longest distance between any two vertices.
Connected component (of an undirected graph)
A subgraph in which any two vertices of the subgraph are connected to each other that is connected to no additional vertices of the subgraph.
A function used to count connected components in a graph is ω(G)
Connected Graph Requirements
There is only 1 connected component
Or every partition of its vertex set into two non-empty sets VX and VY there is at least one edge with one end in VX and its other end in VY
Free Graph
A graph with no edges
Complete Undirected Graph
Every party of different vertices are connected.
Complete Graph Size
With order |V| = n, it is always |E| = (n(n - 1))/2
Trajectory
A directed path
Weakly Connected Directed Graph
There is a path between any pair of nodes where each node is different.
All strongly directed graphs are also weakly connected.
Strongly Connected Directed Graph
There is a directed path between any pair of different nodes, i.e. where there is a path between every pair of nodes, even when considering the direction of edges.
Depth-First Search
Searching children before siblings.
Breadth-First Search
Searching siblings before children.
Removing a Vertex
Remove the vertex and all of the edges connected to it.
Removing a Vertex (Formally)
In a graph G = (V, E), the graph H = G - v = (vH, eH) is the subgraph resulting from removing v in V from G, vH = V - {v} and all incident edges, for all edges e in E that aren’t v but are in eH.
Removing an Edge
Only remove the edge without any further modifications.
Bridge
An edge of a graph whose deletion increases the number of connected components within the graph.
ω(G \ e) > ω(G)
Cut Vertex (Articulation Point)
A vertex that when removed increases the number of connected components within the graph.
ω(G \ v) > ω(G)
K-Regular Graph
A graph where all of its vertices have the same degree.
Bipartite Graph
The vertices of the graph can be partitioned into two subsets, such that all edges connect to a vertex of V1 and a vertex of V2.
Set Partitioning
Splitting a set into subsets, such as the union of all subsets is the same as the whole set.
Bipartite Graph Formally
For all edges (e = (vi, vj) in E), vi is in V1 and vj is in V2
Complete Bipartite Graph
Every vertex in V1 is connected to every vertex in V2.
Clique
A subset of a graph that is complete and minimal.
Tree
A graph where every pair of vertices is joint by a single chain.
It is simple, acyclic and connected.
Internal Tree Vertex
A vertex that has a degree of 2 or more.
Leaf Node
A vertex with a degree of 1.
Modularity
The measure of the structure of a graph, measuring the strength of division of the graph into modules (cliques, clusters, communities).
Calculating Modularity (Simple)
Assume we want to divide a graph G into k subgraphs.
Define a symmetric matrix Mk x k = {mij} with elements mij that are the fraction of all edges in the network that link vertices in the subgraph Vi with vertices in the subgraph Vj
The row and column sums mi = Sum of all mij for each j represent the fraction of edges that connect to vertices in subgraph Vi
In a graph where edges fall between vertices without regarding the division, we would see mij = mimj
Modularity (Formula)
Where:
Mk x k = {mij} where M is a symmetric matrix and mij are the elements that are the fraction of all edges in the network that link vertices in the subgraph Vi with vertices in the subgraph Vj.
||M|| is the sum of elements in the matrix.
Trace(M) is the sum of the main diagonal element
Represents the fraction of edges in the graph that connect to vertices in the same subgraph
Newman-Girvan Modularity Formula
Where:
aij is the weight of the edge between vi and vj
ki = the sum of weights of the edges attached to the vertex vi
ci is the community vi is part of
D(ci, cj) is 1 if ci = cj or 0 otherwise
m = ½ * sum of all elements in the adjacency matrix.
Agglomerative Methods
Start from a free graph and add edges, building the graph from leaves to root.
Divisive Methods
Starting from a complete method, removing edges, in the process building the graph from root to leaves.
Louvain Algorithm
A community detection algorithm that iteratively maximises the difference between the actual number of edges in a community and the expected number of edges in the community.
Girvan-Newman Community Detection
A community detection algorithm based on betweenness - it iteratively computes the centrality for all edges and removes the edge with the greatest centrality, one at a time.
Louvain Algorithm - Phase 1
Builds a partition over the graph, shuffling nodes among neighbouring communities, potentially moving the same node multiple times.
Louvain Algorithm - Phase 2
Build a new graph whose nodes are the communities found in the first place.
The weights of the links between two community nodes are given by the sum of the weights of the links between nodes in the corresponding two communities.
Links between the same community lead to self-loops for this community in the new network.
Louvain Algorithm - Pro
Fast and scalable - modularity does not have to be calculated from scratch every time and just the difference can be calculated.
Louvain Algorithm - Con
The output of the algorithm is dependent on the order that nodes are considered in.
Metacommunity
A set of communities that interact with each other.
Girvan-Newman Community Detection - in brief
For every edge in a graph, calculate the betweenness centrality
Remove the edge with the highest betweenness centrality
Calculate the betweenness centrality for every remaining edge
Repeat steps 2 - 4 until there are no more edges left
Girvan-Newman Community Detection - Betweenness Centrality
Calculated using Freeman’s normalised betweenness centrality for edges.
qij(k) - the number of shortest paths between vi and vj running through the vertex/edge k (vk or ek)
Gij is the total number of shortest paths between vertices vi and vj.
F is a normalisation factor valued F = (|V| - 1)(|V| - 2) in cases of vertices and F = |V|(|V| - 1) in the case of edges