Dr. Philip Knight – University of Strathclyde
Oumarou Moussa Bola
This repository includes materials related to our analysis of transportation networks. Specifically, it contains one of six Jupyter notebooks that focus on the Paris dataset. The structure of this notebook is similar to the other five in the project.
Inside this repository, you will find:
- Jupyter Notebook: The Python implementation for analyzing the Paris transportation network.
- Dataset: The Paris Network dataset used in our study.
- Generated Images: Visualizations from previous simulations.
Transportation networks often lack optimal efficiency, leading to increased travel costs, congestion, and environmental impacts like CO₂ emissions. The goal of this study is to explore network distance metrics and develop strategies to optimize these networks, making them more cost-effective and sustainable.
The analysis of complex networks has demanded an increasing number of theoretical tools needed for extracting useful information about their non trivial structured. Many of the topological properties that produce the unique features of complex network emerge naturally by embedding them into hyperbolic space. In fact the communicability function provides information about how well-communicated a pair of nodes is in a connected network. The communicability between the pair of nodes
Where
In order to fully understand the communicability function, it is interesting to look at the physical analogy of this concept. Indeed by considering the network as a quantum harmonic oscillator system submerged into a thermal bath with inverse temperature given by:
where,
It represents the thermal green function of the system and indicates how a thermal oscillation is propagated from one node to another in the network.
In order to compare communicability in different networks, It might be useful to scale the communicability metric so that it lies between
The communicability between the pair of nodes
This metric is very useful as it allows us to extract relevant insight about the network structure.
Proposition.
Proof.
We have
Since we are dealing with undirected networks, it follows that
with
-
$\Delta$ : Diagonal matrix containing the eigenvalues of$A$ -
$Q=[\phi_1,\cdots,\phi_n]$ : Orthogonal matrix containing the eigenvectors associated with$\lambda_i$
We can rewrite
with
Also,
Thus the identity axiom holds. Moreover, the symmetric property of
Furthermore, using the spectral decomposition theorem we have:
where
Using this we can write
By letting
Thus,
Hence
In this section we introduce a new metric that will combine several measures of network distances that we will penalise by certain parameters that will be defined in the subsequent lines. To achieve the former goal, we need to define a metric that will quantify the amount of
Where
-
$E(e_i)$ : represents the weights of an edge$e_i$ in terms of$\text{CO}_2$ emitted thus a positive quantity; -
$\widetilde{S}(p,q)$ : represents the sets of edges in the shortest path between the nodes$p$ and$q$ .
Proposition.
The introduced
Proof.
For
(i) Non-negativity and identity:
By assumption
Also,
Thus the identity axioms holds and
(ii) Symmetry:
Thus
(iii) Triangle inequality:
Let
This simply means that the number of edges in the shortest path between
Hence the triangular inequality holds which finally implies
We are now ready to define our new hybrid measure of network distances as a weighted sum of the environmental impact contribution (
with
Proposition.
The novel hybrid measure of network distance
Proof.
For
(i) Non-negativity and identity:
because by definition of the distance:
Thus
Also,
Hence the identity axiom holds.
(ii) Symmetry:
Thus
(iii) Triangle inequality:
Let
Since
Hence (i), (ii) and (iii) imply that
To implement the novel hybrid measure, we first need to compute the communicability distance matrix. This will provide the foundation for analysing the effectiveness of the new measure and for comparing the communicability shortest path distance with the regular shortest path distance.
Let
Where ( S ) is a column vector of the self communicabilities of every node in the network. Let
With:
- The communicability function matrix defined as:
-
and the following column vector of ones:
$$\mathbf{e}=\mathbf{1}_{n\times 1}=[ 1,1,\cdots,1 ]^T$$
The communicability distance matrix of the network ( G ) is then given by:
Where
Using the definition above and considering the fact that in a transport network, the shortest path is not necessarily the most efficient path either in terms of travelling time, congestion or environmental impact, we suggest the following road map:
The first step consists of implementing the communicability distance function in Python.
The implemented algorithm is given below:
Subsequently, we suggest comparing the communicability shortest-path distance with the regular shortest-path distance obtained using Dijkstra’s algorithm.
c) Comparison between any two pairs of nodesFor any two pair of nodes where the source node has been previously defined, we want to compare the length of the shortest path generated by the communicability shortest path with that of the regular shortest path.
This step consists of generating visuals that illustrate the difference in proportion between the communicability shortest path and the regular shortest path distance.
This step consists of analysing the results obtained from various networks and defining a rewiring strategy that will improve the overall network efficiency — not only in terms of shortest-path distance but also in terms of communicability.
In order to compute the novel hybrid metric (as defined earlier), we need to normalise the contribution of each of the metrics as follows:
Hence, the hybrid distance becomes:
In addition, we also need to compute the shortest path distance matrix, which yields the shortest path distances between any pair of nodes in the network.
This is achieved using the Floyd–Warshall all-pairs shortest paths algorithm:
Rewiring strategy
Let
We have two shortest-path node–frequency distributions:
-
$\widetilde{f}_{C}(V)$ : the frequency distribution of the nodes$v_i$ in the communicability shortest paths -
$\widetilde{f}_{R}(V)$ : the frequency distribution of the nodes$v_i$ in the regular shortest paths
From our simulation outputs, it is evident that for all
Our goal is to modify the two distributions:
-
$\widetilde{f}_{C}(V)$ , $\widetilde{f}_{R}(V)$
so that they match as closely as possible, mathematically this reads:
subject to the following constraints:
Condition (i) ensures that the number of nodes and edges remains constant,
and condition (ii) ensures that the rewired graph
Given a connected graph
Let
Define the set of all connected graphs with the same number of nodes and edges as:
Each graph
with constraints:
Along with the degree sequence preservation constraint:
The connectivity of the network via the Laplacian
Hnece the feasible adjacency matrices are:
Regular shortest-path node counts:
Communicability shortest-path node counts:
The normalization factors are given by:
Distributions:
In fact, for a rewired graph
For
In short the problem consists of finding a rewired graph
which can be written equivalently as:
To implement the rewiring strategy described above, we first need to design an algorithm that satisfies all structural constraints of the problem.
Let
Our objective is to generate a new network by modifying the initial adjacency matrix
- The generated network
$G' = (V', E')$ remains connected - The numbers of nodes and edges remain unchanged, i.e.,
$|V| = |V'|$ and$|E| = |E'|$
Taking these constraints into account, the complete implementation algorithm of the rewiring strategy is presented below under the following hypotheses:
In real-world scenarios, it is often impractical to establish connections or add edges between every pair of nodes, particularly in road transportation networks.
However, for the purposes of this project, we assume the feasibility of adding or removing edges between pairs of nodes within a given transport network.
This assumption is more realistic for airline transportation networks, where long-range connections are more flexible and less physically constrained.
-
communicability-based frequency
$$\widetilde{f}_{C} (v_i)$$
matches
-
regular shortest-path frequency
$$\widetilde{f}_{R} (v_i)$$
as closely as possible, while preserving the connectivity and size of the network.
Our primary objective is to explore and develop techniques that improve the efficiency of transportation networks. Key findings from our analysis include:
- Network Distance Metrics: We analyzed various distance measures to assess their effectiveness in identifying well-connected hubs and areas that require improved connectivity.
- Resistance Metric: Demonstrated effectiveness in detecting both well-connected hubs and regions needing better integration.
- Hybrid Metric: Showed that adjusting the balance between travel cost, environmental impact, and network efficiency can yield optimized transportation routes.
- Rewiring Strategy: Successfully modified network structures to enhance connectivity whilst reducing inefficiencies.
For more information feel free to reach out:
📧 oumarou@aims.ac.za



