Skip to main content

Topology dependence of on-demand ride-sharing


Traffic is a challenge in rural and urban areas alike with negative effects ranging from congestion to air pollution. Ride-sharing poses an appealing alternative to personal cars, combining the traffic-reducing ride bundling of public transport with much of the flexibility and comfort of personal cars. Here we study the effects of the underlying street network topology on the viability of ride bundling analytically and in simulations. Using numerical and analytical approaches we find that system performance can be measured in the number of scheduled stops per vehicle. Its scaling with the request rate is approximately linear and the slope, that depends on the network topology, is a measure of the ease of ridesharing in that topology. This dependence is caused by the different growth of the route volume, which we compute analytically for the simplest networks served by a single vehicle.


The increasing demand for mobility in modern urban, suburban and rural areas presents a wide range of ecological and logistic challenges. While urban areas struggle with traffic jams, air pollution and parking space shortages (Guerreiro 2018; NYC Department of Transportation 2018), rural areas are often unable to provide accessible and frequent public transport. The recent rise of the sharing economy (Belk 2014; Cohen and Kietzmann 2014; Kamargianni et al. 2016; Greenblatt and Shaheen 2015) has brought up ride-sharing as a possible answer to all of these problems. Ride-sharing poses an appealing alternative to personal cars, combining the traffic-reducing ride bundling of public transport with much of the flexibility and comfort of personal cars (Spieser et al. 2014; Zhang and Pavone 2016; Barbosa et al. 2018; Macharis and Keseru 2018; Vazifeh et al. 2018). Intelligent on-demand ride-sharing services are hoped to reduce the ecological footprint associated with individual mobility by dynamically bundling rides together, reducing the amount of vehicles necessary for the same number of rides (Tachet et al. 2017; Santi et al. 2014; Sorge et al. 2015; Sorge 2017).

However, the complex behaviour of such dynamic dial-a-ride problems (DARP) (Berbeglia et al. 2010) is not yet fully understood. Recent studies have examined the dynamical behaviour of specific ride-sharing strategies analytically (Herminghaus 2019; Molkenthin et al. 2019) or in simulations (Alonso-Mora et al. 2017; Ma et al. 2013; Agatz et al. 2011; Horn 2002). However, the general scaling behaviour, or dependence on street network topology and request patterns are not currently understood. Such an understanding would be necessary to compare different dispatching strategies and network settings and make informed decisions about which dispatching strategy works best for a particular network.

Here we study the effects of the underlying street network topology on the viability of ride bundling analytically and in simulations in the low-density limit by studying the performance of a single vehicle. We find that for finite request rates and vehicles not restricted by capacity, there is always a quasi-stationary regime of operation, varying in waiting time and typical vehicle occupancy. We develop a probabilistic description of the steady-state route length, relying on route-volume, a topological characteristic of a network that we define, and use this to derive the equilibrium stop-list length. Based on this we show the scaling of the steady-state stop-list length with the dimensionless request density to be linear with a slope depending on the topology. The dependence of the route-volume on the stop-list length can be approximated explicitly for some simple topologies (ring and star) and numerically otherwise.

We apply this analysis to unweighted real-world street networks. The general layout of urban centers is predominantly grid-like in structure, whereas rural areas appear to be best described as interconnected rings with long stretches of unbranching streets. This leads to the surprising effect that, while the request density of cities tends to be better suited for ride-sharing, the topologies show the opposite trend with rural areas allowing easier bundling. This is particularly important as cities already have well functioning public transport options, which have proven to be impractical in less densely populated areas.


We use a simplified model to study ride-sharing, in which the street network is represented as a simple graph with N nodes. Requests are placed according to a request pattern Pi,j,t and serviced by a single vehicle, where a request is an ordered pair of a pick-up node i and a drop-off node j drawn from the request pattern at time t. The request pattern used throughout this manuscript is uniform across all node pairs and time to facilitate analytical treatment. Related studies have found, however, that such simplifications only have small impacts on the overall behaviour of the system (Molkenthin et al. 2019). New requests arrive according to a Poisson process with an average time Δt between requests to be included in the route according to a dispatcher algorithm. The capacity of the vehicle is presumed to be unlimited to allow for the analysis of a wide range of request rates. Introducing a finite capacity would lead to rejections and thus effectively an upper bound for the request rate, beyond which the system overloads. The dispatcher algorithm checks if the request’s pick-up node can be inserted to the existing stop list without incurring any detour. If this is the case it checks if the drop-off node can also be inserted to the existing stop list without any detour, otherwise it is appended at the end of the stop list. If the pickup cannot be inserted with zero detour, then both the pick-up and the drop-off are appended right after each other at the end of the stop list.

We introduce the dimensionless request rate x in order to compare system properties across network topologies

$$ x = \frac{2\langle{l}\rangle}{\nu \Delta t}, $$

where 〈l〉 is the average length of the requested ride and ν is the bus speed.

A request rate of x=1 means that the vehicle covers a distance of 2〈l〉 between two requests, where 2〈l〉 is the expected distance from the endpoint of the route to the new pick-up and from there to the new drop-off. Therefore even without ride-sharing, rides are on average completed within one Δt and even a taxi system would be able to serve them all, operating at maximum capacity. For x>1 the taxi can no longer serve the system and waiting times diverge, in this case the ride-sharing system transports x times as many passengers as the taxi could.

To quantify passenger satisfaction in a ride-sharing system, we investigate the service time ts, i.e. the time it takes from placing the request until being delivered at the requested drop-off location. The number of planned stops in the system, the stop list length n, on the other hand serves as a measure of performance from the perspective of the system as a whole.

Starting from an empty vehicle in a random position, we subsequently generate random requests with pick-up and drop-off nodes chosen uniformly randomly from the nodes of the graph, that are then included in the route by the dispatcher algorithm and served at constant velocity. This is repeated until the steady state is established and performed on a range of different network topologies (star, ring, grid, city layouts) and request rates (0<x<40). Results of the simulations on a ring with 10 nodes are shown in Fig. 1. The complete simulation code is available in (Manik 2020).

Fig. 1
figure 1

Properties of the route reach an equilibrium state. a Time series of stop-list-length n for four values of x, in a 10 node ring. Higher request rate x leads to longer stop lists. b Histogram of (relative) service time ts for four values of x. A higher request rate x leads to a wider distribution of relative service times. c The mean relative service time grows with the request rate but saturates at the network size N, as for large x the bus-route covers the entire network


We analytically derive approximations for the stop list length n in the steady state, by solving the evolution equation for the length of the planned route after r insertions Lr.

$$ L_{r+1}=L_{r}+l^{+}(n) - \nu \Delta t, $$

Where l+(n) is the average added length per request, νΔt is the distance driven in between requests and the discrete time parameter r counts the requests.

The planned route length reaches its equilibrium at

$$ l^{+}(n) = \nu \Delta t =\frac{2\langle{l}\rangle}{x}, $$

where we used the definition of x from Eq. 1.

In case of a taxi system the added length is independent of n at two times the average shortest path length in the network

$$ l^{+}_{taxi}= 2 \langle{l}\rangle, $$

as new segments are simply added to the end. If x>1, the system no longer has an equilibrium as the route length keeps growing, if on the other hand x<1, the taxi has time between subsequent rides, in which it stands still, lowering the average velocity.

In a ride-sharing system with a sensible dispatcher algorithm, however the length of the added segments depends on the planned route. In our model for example, as the current length of the route n grows, the probability that a new request’s pick-up and/or drop-off being already included in the route increases, resulting in a smaller l+(n).

We take the added length to be the average over three possibilities:

  1. a

    Both, pick-up and drop-off node are already on the route.

  2. b

    The pick-up node is on the route but the drop-off node is not.

  3. c

    The pick-up node is not on the route.

In case a) no length is added to the route, in case b) the average added length is 〈l〉 and in case c) the route gets longer by an average of 2〈l〉. This means that

$$ l^{+}(n) \approx P_{b} \langle{l}\rangle+2 P_{c} \langle{l}\rangle, $$

where Pb and Pc are the probabilities of b and c respectively.

To evaluate the probabilities, we introduce route volumeV as the number of nodes that can be reached within the stop list without a detour (illustrated in Fig. 7 in Appendix A). The probability for the requested pick-up node to be on the route depends on the expectation value 〈V〉 of the volume of the route. The volume depends on the length of the stop-list as well as the topology of the underlying network. As the requested drop-off point has to be on the route after the pick-up, there is a second relevant route volume Vrest, and its expectation value 〈Vrest〉(n), the average volume of the route after the pick-up. Assuming the position of the pick-up is uniformly randomly located somewhere along the route, the fact that the insertion of the drop-off is always after the pick-up leads to (we employ a simplifying assumption that the pick-up is equally likely to be inserted at any position in the stop-list)

$$ \langle{V}\rangle_{\textsf{rest}}(n) \approx \sum_{k=1}^{n} \langle{V}\rangle(n-k)/n={\sum_{k=0}^{n-1} \langle{V}\rangle(k)/n.} $$

We see in Fig. 2a-b that Vrest so computed is slightly lower than the actual value. This is because in reality, the pick-up location is slightly more likely to be at the second half of the stop list than the first half. We demonstrate this in Fig. 9 in Appendix A.

Fig. 2
figure 2

Volume with stop-list length. a ring graph together with its approximation from Eq. 9 and b star graph together with its approximation from Eq. 10. The analytical approximation for Vrest from Eq. 6 slightly overestimates the drop-off volume, indicating that the insertions of the pick-ups are not uniformly random across the whole length of the route. c Vrest approaches N indeed as 1/n in the asymptotic limit, as predicted in Eq. (7)

Furthermore, we note that the function 〈V〉(n) is always monotonously growing with n and asymptotically approaching N. We thus express 〈Vrest(n) for large n as

$$ \langle{V}\rangle_{\textsf{rest}}(n) = \frac{1}{n} \sum_{k=0}^{n-1} \left[N-(N-\langle{V}\rangle(k))\right] = N - \frac{1}{n}\sum_{k=0}^{n-1} \left[N-\langle{V}\rangle(k)\right] \approx N\left(1-\frac{\alpha}{n}\right), $$

where \(\alpha =\sum _{k=0}^{n-1} \left [1-\langle {V}\rangle (k)/N\right ]\), if this limit exists. Note that \({\lim }_{n\to \infty }1-\langle {V}\rangle (n)/N=0\), and if in addition we know that 1−〈V〉(n)/N goes to 0 faster than 1/n, then α is guaranteed to exist. In this case, α is a constant, depending only on the volume growth in a particular network, so 〈Vrest approaches N with n−1. We demonstrate in Fig. 2c that at least for rings and stars, this assumption holds.

Using this, we can express the probabilities for the three insertion types:

$$\begin{array}{*{20}l} P_{a} &= \frac{\langle{V}\rangle(n)}{N}\frac{\langle{V}\rangle_{\textsf{rest}}(n)}{N} \\ P_{b} &= \frac{\langle{V}\rangle(n)}{N} \left(1- \frac{\langle{V}\rangle_{\textsf{rest}}(n)}{N}\right) \\ P_{c} &= 1- \frac{\langle{V}\rangle(n)}{N}. \end{array} $$

This is shown for a number of different networks in Fig. 3.

Fig. 3
figure 3

The relative probabilities of insertion types a, b and c (dots) together with the results of Eq. 8 (lines). a on a ring network with N=101, b on a square 10×10 grid, c on a star graph with N=100

In a ring of length N the expected route volume 〈Vring(n) for a stop list of length n is given by the recursive relation

$$\begin{array}{*{20}l} \langle{V}\rangle(n+1) = \left\{\begin{array}{ll} \frac{N}{4} + \frac{\langle{V}\rangle(n)}{2} + \frac{\langle{V}\rangle(n)^{2}}{3N} & \text{ if} \langle{V}\rangle(n) \leq \frac{N}{2} \\ -\frac{N^{2}}{4\langle{V}\rangle(n)} + \frac{5N}{4} - \frac{2\langle{V}\rangle(n)}{3} + \frac{2\langle{V}\rangle(n)^{2}}{3N}& \text{ if} \langle{V}\rangle(n) > \frac{N}{2}. \end{array}\right. \end{array} $$

A detailed derivation (22) is given in the Appendix A. This approximation holds very well as shown in Fig. 2a.

In a star with N nodes, the number of nodes on the route is approximately equal to the number of unique random draws. This is given by

$$ \langle{V}\rangle_{star}(n)\approx N \left(1-\left(\frac{N-1}{N}\right)^{n}\right). $$

This approximation does not account for the special role of the center point of the star, which is always on the route, as soon as the stop-list contains two or more nodes. Nonetheless it holds reasonably well, as shown in Fig. 2b.


We have now gathered all necessary input for computing the expected steady-state stop-list length. Inserting the approximated volumes from Eq. 9 and Eq. 10 (or using volumes extracted from the simulation if no such approximation is available) into the probability functions from Eq. 8 and the approximation of the second volume from Eq. 6 to then insert into the steady state added length from Eq. 5 and solving for n, we find an approximately linear rise of the stop list length with the dimensionless request rate x (see Fig. 4a and b). While the general trend is captured well, the slopes of the analytical approximations underestimate the actual value. This is due to the overestimation of 〈Vrest(n) by the assumption of uniformly random insertion of pick-ups in the stop-list, limitations of which assumption is demonstrated in Fig. 9 in Appendix A. The discrepancy therefore largely disappears when measured values are used for 〈Vrest(n), as in Fig. 4c

Fig. 4
figure 4

Scaling of stop-list length n vs. (dimensionless) request rate x. In the limit for large x, n scales approximately linearly with x for all networks. The slope grows with the dimensionality of the street network. a 100 node ring, n measured directly (blue line) qualitatively agrees with n reconstructed from volumes using Eq. 9b 100 node star, n measured directly (blue line) qualitatively agrees with n reconstructed from volumes using Eq. 10c simulated n vs. x for ring, line, grid, triangular grid and star, measured directly (dots) agrees with n reconstructed from measured 〈Vrest (line) according to Eq. 12

Independently of the exact form of 〈V〉(n) we can exploit the asymptotic behaviour of 〈V〉(n) and set \(\frac {\langle {V}\rangle }{N}\rightarrow 1\), leading to (using (3) and (5))

$$\begin{array}{*{20}l} \frac{2\langle{l}\rangle}{x} = l^{+}(n) &\approx P_{b} \langle{l}\rangle+2 P_{c} \langle{l}\rangle \\ &=\langle{l}\rangle \left[\frac{\langle{V}\rangle}{N} \left(1- \frac{\langle{V}\rangle_{\textsf{rest}}}{N}\right) +2 \left(1- \frac{\langle{V}\rangle}{N}\right)\right] \\ &=\langle{l}\rangle\left(1-\frac{\langle{V}\rangle_{\textsf{rest}}}{N}\right), \end{array} $$

where we inserted the probabilities from Eq. 8 into Eq. 5 and set \(\frac {\langle {V}\rangle }{N}\rightarrow 1\).

In this we use the expression for α from Eq.7 and solve for x, giving

$$ x\approx \frac{2 n}{ \alpha}, $$

where \(\alpha ={\lim }_{n \rightarrow \infty }\sum _{k=0}^{n-1} \left [1 - \langle {V}\rangle (k)/N\right ]\) is computed from the analytical expressions of 〈V〉(k) or directly from simulated 〈V〉 and 〈Vrest. In Fig. 4c the estimated results for α are inserted in Eq. 12 and plotted with the directly simulated n(x). For each topology and request rate, 10000 requests were simulated, with the origin and destination of each request drawn uniformly randomly from the nodes (Manik 2020).

We find values of α≈11.4 for the ring, α≈6.4 for the line, α≈28.2 for the grid, α≈35.4 for the triangular grid and ≈186.0 for the star. The resulting lines capture the behaviour of the curves reasonably well.

The star graph has by far the steepest curve, indicating the worst layout for ride-sharing. This was expected as there is only one point that is on the way while all other nodes are detours. The grids perform slightly better, as there are multiple routes between any two points. The ring and line essentially represent the ride-sharing in an elevator, which works without much route adjustment by simply going up and down and collecting whomever is going in the current direction of the elevator.

This shows that ride sharing on a ring or line is very natural and typically possible, while almost no two distinct rides can be bundled on a graph with star topology (see Fig. 4).

We have applied the methods to real street networks to assess their respective ride-sharing feasibility and compare rural, urban and suburban areas. To this end we have extracted street networks from the freely available open dataset curated by the OpenStreetMap project (OpenStreetMap contributors 2020) using the open-source library OSMnx (Boeing 2017) and translated the weights into a corresponding number of equally long links, since our method is meant for unweighted graphs. First, if two nodes are less than 100 m apart, they are collapsed into one, then all links longer than 400 m were subdivided by adding additional nodes. This procedure ensures that link lengths are approximately uniform. This procedure is further illustrated in Appendix B and Fig. 11. In the resulting graph the distribution of edge lengths are rather sharply peaked around 400 m. For example, in case of the Berlin network in Fig. 5, edge lengths have mean 310.19 m.

Fig. 5
figure 5

Ride-sharing on a variety of street networks. The length of the planned route n grows linearly with the normalized request rate x, with a slope dependant on the topology of the network. a Example street network extracted from Berlin, b Example street network extracted from Harz, cn vs. x for networks from Berlin, Göttingen and Harz

These alterations leave the shortest path lengths in the networks largely unaffected. In each of Berlin, Göttingen and Harz, the average shortest path length remains within 20% of the original value (when comparing the original weighted average shortest path length in meters against the new unweighted shortest path length multiplied by the average link lengths in meters). In urban networks, the original street lengths are largely homogeneous, leading to few added intermediate nodes. In rural areas, on the other hand, street lengths in between settlements are far larger than those within villages, leading to large numbers of added nodes. As a result, street networks in the city, as shown in Fig. 5a resemble a grid, whereas those in the countryside resemble a loose mesh.

In order to distinguish effects of network size N and the interaction structure on ride-sharing efficiency, we compare networks of equal size and link length. This is done by selecting geographical regions to include comparable numbers of nodes at the same coarse graining criteria: collapsing node pairs that are <100 m distant, then introducing intermediate nodes along edges to achieve a target edge length of 400 m. By suitably choosing the geographical bounding boxes, we generate networks with ≈500 nodes and simulate 10000 requests in each case. The resulting stop-list length is plotted in Fig. 5 over the dimensionless request rate, assuming a uniformly random distribution of requests, as in the case of the artificial networks. We observe linear behaviour with the slope depending on the underlying network, just like we did for synthetic networks in Fig. 4.

In particular we find that the grid-like structure of the large city (Berlin) leads to a far steeper slope than the loose mesh of the rural area (Harz), or a single town surrounded by smaller villages (Göttingen), indicating that the rural topology may be more suitable for ride-sharing, when the request pattern is uniformly randomly distributed.

We furthermore explore the effect of network size, while keeping the network structure constant by comparing ride-sharing between different coarse-graining levels of the same region of Berlin: we collapse all node pairs <200 meters distant, then introduce intermediary nodes to achieve target edge lengths of 200,600 and 800 meters. Despite the normalization of the request rate with the average shortest path length, we find the slope to depend on the network size, as well as structure, as shown in Fig. 6. This means if the same geographical area is modelled as a sparser network (i.e. with fewer nodes), it shows higher ride-sharing efficiency than a denser network. This happens because in a sparser network, it is more likely that the shortest path between the origin and destination of two different requests will have an overlap. Indeed, the same effect is also encountered in the optimum bus stop design problem: Fewer bus stops lead to higher efficiency (Moura et al. 2012; Schöbel et al. 2009; Nalawade et al. 2016), but this comes at the cost of less customer satisfaction since the average distance to cover for a customer to get to their pick-up location is increased. Various on-demand ride-pooling service providers as well choose to allow pick-up and drop-offs only at selected virtual bus-stops (i.e. bundled stop locations, meant to reduce the number of stops and amount of detour for the ride-sharing vehicles) instead of any node in the underlying street network (Pettersson 2019; Racah et al. 2017).

Fig. 6
figure 6

Ride-sharing efficiency depends also on network size, in addition to topology. The slope of n vs. x differs between a few street networks created by differently coarse-graining the street network of Berlin. a and b shows two differently coarse-grained and hence, differently-sized networks. cn vs. x for these two networks

Conclusion and discussion

Here we have tackled the question how network topology affects the feasibility of ride sharing. For this, we have studied the steady states of a one-vehicle ride-sharing system in a range of simple homogeneous networks as well as real regional street network topologies using both analytical and numerical methods and analyzed the backlog (i.e. the stop-list) in the system depending on its load.

We find in Fig. 4 that, while similar networks also result in similar scaling behaviour of the stop-list length (i.e. ride-sharing is almost indistinguishable between the ring and the line or different grids of the same size), there are large differences between networks with different dimensions (i.e. ring (1D), grid (2D) and star (D)). Furthermore, there is a substantial impact of the number of nodes N on the ride-sharing predisposition.

We find these differences to be summarized by the cumulative route volume parameter α.

In the light of these findings we have compared a range of very different regional street networks ranging from urban centers to smaller towns and rural areas. Assigning them the same request density and selecting bounding boxes, such that the networks have comparable distances and node numbers N, we find, that ride-sharing is topologically harder in urban areas, as their grid-like structure causes routes to be more likely to be distinct while the loose mesh, characteristic of rural areas topologically forces ride-sharing on long stretches of the connecting streets. We expect this effect to be even stronger with more realistic request patterns, which would remain largely homogeneous in urban centers, but be centered around settlements in rural areas, effectively lowering the number of active nodes.

This effect is, however, counteracted by the typically inconveniently low request rates for public service options in rural areas. To make use of the beneficial network structure, it would therefore be necessary to convince more customers of participating in shared flexible transport options.

The combination of nearby nodes (coarse graining) may improve ride-sharing and thus deliver convenient, efficient public transport. This may be realized in practice by offering the customers a choice of virtual bus-stops (Pettersson 2019; Racah et al. 2017). Cities on the other hand already have an inexpensive and efficient public transport in line-services. Further research is needed to determine how introducing line-services on the most frequented routes would affect or be combined with on-demand ride-sharing.


As mentioned above, there seems to be a relationship between ride-sharing efficiency and network dimension. In future works it would be highly valuable to further explore this connection and establish a network measure, that predicts the slope directly from the network topology.

In order to directly apply the results of this research to realistic ride-sharing scenarios, the simplified demand pattern would need to be replaced by more realistic input. Equally one would likely work with several finite sized vehicles that allow small detours, rather than one infinitely large one making zero detour. In the choice of those parameters, intuitions gained from this analysis can be used to make educated guesses for such parameters.

One question in particular to be addressed with such a more detailed model would be an analysis of the gains to be achieved through virtual bus stops in a trade off between efficiency and personal comfort.

Appendix A: Stoplist volume and insertion into a stoplist

We want to know what is the expected (i.e. ensemble average) stoplist volumeV〉(n), when n stops are added to an initially empty stoplist according to the procedure described in “Model” section. The route volume V of a stoplist is the number of nodes that can be reached without taking any detour while traversing it. Given that a pickup point is inserted into the list, Vrest is the volume of the rest of the route after the pickup position. This is illustrated in Fig. 7 in Appendix A.

Analytical stoplist volume for rings

Consider an N node ring with nodes labelled 1,2,,N. Let a stoplist of length n be constructed as per “Model” section and Vn be its volume. Our goal is to find out the expectation value E[Vn]:=〈V〉(n).

We go to the continuum limit here for ease of analytical computations (i.e. we approximate the N node ring with a continuous ring of length N). Further, we do our calculations in phase variables angular volume wn[0,2π], instead of in Vn, by defining

$$\begin{array}{*{20}l} V_{n} &:= \frac{w_{n}}{2\pi} N. \end{array} $$

We further assume without loss of generality that the stoplist (with angular volume wn) has its extremities at 0 and wn, effectively going to a rotated coordinate system.

We approach the problem by looking at the expectation value of the increment in volumes Δn(wn,ζn,ζn+1) when a new stop at ζn+1 is added to an n-length stoplist with angular volume wn whose last stop is at ζn:

$$\begin{array}{*{20}l} w_{n+1} &=w_{n} + \Delta_{n}(w_{n}, \zeta_{n}, \zeta_{n+1}) \end{array} $$
$$\begin{array}{*{20}l} E[w_{n+1}|w_{n}] &= w_{n} + E[\Delta_{n}|w_{n}]. \end{array} $$

If we know E[Δn|wn], a recursive formula can be derived for E[wn].

The stoplist-generation process described in “Model” section necessarily means the function Δn(wn,ζn,ζn+1) will have the form described in Fig. 8.

Fig. 7
figure 7

Illustration of V and Vrest. a A stoplist of length 4 in a 5×5 square grid. The volume is 16. b A new pickup is inserted before the 3rd stop. Vrest is 8

Fig. 8
figure 8

The function Δn as defined in (15)

The main difficulty in computing E[Δn|wn] lies in the fact that although ζn+1 and wn are independent, ζn and wn are not independent (because ζn, the last point on the stoplist, influences the value of wn). We therefore make out first simplifying assumption: Ignore this dependence and assume that ζn is uniformly randomly distributed in the interval (0,wn), i.e. the last point in the stoplist is equally likely to be found anywhere within the volume. Then we have

$$\begin{array}{*{20}l} \zeta_{n} & \sim U(0, w_{n}) \end{array} $$
$$\begin{array}{*{20}l} \zeta_{n+1} &\sim U(0,2\pi), \end{array} $$

leading to

$$\begin{array}{*{20}l} E[\Delta_{n} | w_{n}] &= \int_{0}^{w_{n}} d\zeta_{n} \frac{1}{w_{n}} \int_{0}^{2\pi} d\zeta_{n+1} \frac{1}{2\pi} \Delta(w_{n}, \zeta_{n}, \zeta_{n+1}). \end{array} $$

Plugging in the piecewise-linear functional form of Δn as described in Fig. 8 into Eq. (18) yields

$$\begin{array}{*{20}l} E[\Delta_{n}|w_{n}] &= \left\{\begin{array}{ll} \frac{1}{2\pi} \left(\frac{w_{n}^{2}}{3}-w_{n}\pi+\pi^{2}\right) & \text{ if} w_{n} \leq \pi \\ \frac{2\pi-w_{n}}{2\pi w_{n}} \left(-\frac{2w_{n}^{2}}{3}+2\pi w_{n}-\pi^{2}\right) & \text{ if} w_{n} > \pi, \end{array}\right. \end{array} $$

and using (15), we get

$$ E[w_{n+1}|w_{n}] = \left\{\begin{array}{ll} \frac{\pi}{2} + \frac{w_{n}}{2} +\frac{w_{n}^{2}}{6\pi} & \text{ if} w_{n} \leq \pi \\ -\frac{\pi^{2}}{w_{n}} + \frac{5\pi}{2} - \frac{2w_{n}}{3} + \frac{w_{n}^{2}}{3\pi}& \text{ if} w_{n} > \pi. \end{array}\right. $$

Now we can go back to the discrete Vn from the continuous wn by using Eq. 13:

$$ V(n):= E[\upsilon(n)], $$
$$ \langle{V}\rangle(n+1) = \left\{\begin{array}{ll} \frac{N}{4} + \frac{\langle{V}\rangle(n)}{2} + \frac{\langle{V}\rangle(n)^{2}}{3N} & \text{ if} \langle{V}\rangle(n) \leq \frac{N}{2} \\ -\frac{N^{2}}{4\langle{V}\rangle(n)} + \frac{5N}{4} - \frac{2\langle{V}\rangle(n)}{3} + \frac{2\langle{V}\rangle(n)^{2}}{3N}& \text{ if} \langle{V}\rangle(n) > \frac{N}{2}. \end{array}\right. $$

Pick-up location in a stoplist

We see in Fig. 2a and b that Vrest computed based on the assumption that the pick-up is equally likely to be inserted after any stop in the stop-list, is slightly overestimating the actual value. In reality, however, the pick-up location is slightly more likely to be in the second half of the stop-list, as demonstrated in Fig. 9 in the case of the 100 node ring.

Fig. 9
figure 9

Illustration of the non-uniformity of the pick-up location in a stoplist. A pick-up is more likely to be located near the end of a stoplist than near the beginning, for simulations done on the 100 node ring

Appendix B: Coarse graining street network and homogenizing the edge lengths

Obtaining openStreetMap data

We developed our analytical results of “Analytics” section for unweighted graphs. In “Results” section, we applied the analytical insights to real world street networks, in addition to simple motif networks (Fig. 4). For this purpose, we used freely available and open data from OpenStreetMap project (OpenStreetMap contributors 2020). We used the open source python library OSMnx (Boeing 2017) to download OpenStreetMap networks for a number of geographical regions including Berlin, Göttingen and the Harz national park in Germany. In each case, we downloaded networks including all streets upto ‘secondary’ level (OpenStreetMap Wiki Contributors 2020).

Coarse graining

Since the networks so obtained were still quite large, we coarse grained them by merging any two nodes that were closer than 100 meters into a single node. This is illustrated in Fig. 10, panels (a) - (c).

Converting to unweighted networks

At this stage we had a much smaller network, but the edges were uneven in length, especially between the different regions, making them not comparable in travel times, especially as our ride-sharing algorithm is based on unweighted networks. In order to get a representation of the network in the form of an unweighted network that still preserves the topological features, we introduced intermediary nodes in each of the edges so that the target edge length would be 400 meters. So, if an edge (u,v) had a length of 1000 meters, now two nodes w1 and w2 would be inserted between u and v so that the edges (u,w1),(w1,w2) and (w2,v) have lengths 400,400 and 200 meters respectively. This step is illustrated in Fig. 10, panels (c) - (d).

Properties of the coarse grained network

The resulting network so obtained (called the “coarse grained network”) has similar average shortest path lengths as the original network. In case of Berlin, we find that the average shortest path length is 5859.6 meters for the original network and 5143.4 meters for the coarse grained one.

Fig. 10
figure 10

Illustration of the coarse graining process. a The original network. b The three nodes in the center are smaller than a predefined buffer. c Hence they are merged into a single node. d In each of the edges, intermediary nodes are introduced so that most of the new edges have the same edge length. Note that at one end of the original edges, the new edge is slightly smaller than the target length

Fig. 11
figure 11

Comparison between the distributions of edge lengths between the original street network and the coarse grained one, for Berlin. Coarge grainined network was created by merging all nodes with pairwise distance <100 m, then intermediate nodes added to achieve a target edge length of 400 m. a The coarse grained network has a much narrower spread of edge lengths centered at 400 m, as expected. b Original weighted shortest path lengths in meters vs. unweigthed shortest path lengths in the coarse grained network, multiplied by the average link length in meters. All points lie close to the diagonal, indicating that shortest path lengths are preserved

In Fig. 11, we demonstrate the difference in the distributions of the edge lengths between the original and the coarse grained network. The original network has a wide spread of edge lengths, as well as large number of very short edges. In the coarse grained network, most of the short edges are gone, and the vast majority of the edges have the desired target edge length of 400 (see Converting to unweighted networks). At the same time Fig. 11b demonstrates that distances between nodes are preserved by the coarse graining procedure.

Availability of data and materials

All data generated or analysed during this study are included in this published article [and its supplementary information files].



Dynamic dial-a-ride problems


  • Agatz, N, Erera AL, Savelsbergh MW, Wang X (2011) Dynamic ride-sharing: A simulation study in metro atlanta. Procedia-Soc Behav Sci 17:532–550.

    Google Scholar 

  • Alonso-Mora, J, Samaranayake S, Wallar A, Frazzoli E, Rus D (2017) On-demand high-capacity ride-sharing via dynamic trip-vehicle assignment. Proc Natl Acad Sci 114:201611675. National Acad Sciences.

    Google Scholar 

  • Barbosa, H, Barthelemy M, Ghoshal G, James CR, Lenormand M, Louail T, Menezes R, Ramasco JJ, Simini F, Tomasini M (2018) Human mobility: Models and applications. Phys Rep 734:1–74. Human mobility: Models and applications.

    MathSciNet  MATH  Google Scholar 

  • Belk, R (2014) You are what you can access: Sharing and collaborative consumption online. J Bus Res 67(8):1595–1600.

    Google Scholar 

  • Berbeglia, G, Cordeau J-F, Laporte G (2010) Dynamic pickup and delivery problems. Eur J Oper Res 202(1):8–15.

    MATH  Google Scholar 

  • Boeing, G (2017) Osmnx: New methods for acquiring, constructing, analyzing, and visualizing complex street networks. Comput Environ Urban Syst 65:126–139.

    Google Scholar 

  • Cohen, B, Kietzmann J (2014) Ride on! mobility business models for the sharing economy. Organ Environ 27(3):279–296.

    Google Scholar 

  • Guerreiro, C (2018) Air quality in Europe - 2018 report. Publications Office of the European Union, Luxembourg. ISBN:978-92-9213-990-2.

    Google Scholar 

  • Greenblatt, JB, Shaheen S (2015) Automated vehicles, on-demand mobility, and environmental impacts. Curr Sustain/Renew Energy Rep 2(3):74–81.

    Google Scholar 

  • Herminghaus, S (2019) Mean field theory of demand responsive ride pooling systems. Transp Res A Policy Pract 119:15–28.

    Google Scholar 

  • Horn, ME (2002) Fleet scheduling and dispatching for demand-responsive passenger services. Transp Res C Emerg Technol 10(1):35–63.

    Google Scholar 

  • Kamargianni, M, Li W, Matyas M, Schafer A (2016) A critical review of new mobility services for urban transport. Transp Res Procedia 14:3294–3303.

    Google Scholar 

  • Ma, S, Zheng Y, Wolfson O (2013) T-share: A large-scale dynamic taxi ridesharing service In: 2013 IEEE 29th International Conference on Data Engineering (ICDE), 410–421.. IEEE, Brisbane.

    Google Scholar 

  • Macharis, C, Keseru I (2018) Rethinking mobility for a human city. Transp Rev 38(3):275–278.

    Google Scholar 

  • Manik, D (2020) Topology Dependence of Ridesharing: Simulations in Multiple Networks (Version 1.1).

  • Molkenthin, N, Schröder M, Timme M (2019) Topological universality of on-demand ride-sharing efficiency.

  • Moura, JL, Alonso B, Ibeas Á., Ruisánchez FJ (2012) A two-stage urban bus stop location model. Netw Spat Econ 12(3):403–420.

    MathSciNet  MATH  Google Scholar 

  • Nalawade, DB, Nagne AD, Dhumal RK, Kale K (2016) Multilevel framework for optimizing bus stop spacing. IJRET Int J Res Eng Technol 5:298–304.

    Google Scholar 

  • NYC Department of Transportation (2018) Mobility Report. Accessed 02 Aug 2020.

  • OpenStreetMap contributors (2020) OpenStreetMap Project. Accessed 02 Aug 2020.

  • OpenStreetMap Wiki Contributors (2020) OpenStreetMap Wiki: Highway. Accessed 02 Aug 2020.

  • Pettersson, F (2019) An international review of experiences from on-demand public transport services. K2 Work Pap.

  • Racah, Y, Sheba A, Shoval O, Ramot D, Marcovitch S (2017) Continuously updatable computer-generated routes with continuously configurable virtual bus stops for passenger ride-sharing of a fleet of ride-sharing vehicles and computer transportation systems and computer-implemented methods for use thereof. US Patent 9,562,785.

  • Santi, P, Resta G, Szell M, Sobolevsky S, Strogatz SH, Ratti C (2014) Quantifying the benefits of vehicle pooling with shareability networks. Proc Natl Acad Sci 111(37):13290–13294.

    Google Scholar 

  • Schöbel, A, Hamacher HW, Liebers A, Wagner D (2009) The continuous stop location problem in public transportation networks. Asia-Pac J Oper Res 26(01):13–30.

    MathSciNet  MATH  Google Scholar 

  • Sorge, A (2017) Towards a statistical physics of collective mobility and demand-driven transport. PhD thesis, Georg-August-Universität Göttingen.

  • Sorge, A, Manik D, Herminghaus S, Timme M (2015) Towards a unifying framework for demand-driven directed transport (d3t) In: Proceedings of the 2015 Winter Simulation Conference, 2800–2811.. IEEE Press, Huntington Beach. ISBN:9781467397414.

    Google Scholar 

  • Spieser, K, Treleaven K, Zhang R, Frazzoli E, Morton D, Pavone M (2014) Toward a systematic approach to the design and evaluation of automated mobility-on-demand systems: A case study in singapore. In: Meyer G Beiker S (eds)Road Vehicle Automation. Lecture Notes in Mobility, 229–245.. Springer, Cham.

    Google Scholar 

  • Tachet, R, Sagarra O, Santi P, Resta G, Szell M, Strogatz S, Ratti C (2017) Scaling law of urban ride sharing. Sci Rep 7:42868.

    Google Scholar 

  • Vazifeh, MM, Santi P, Resta G, Strogatz SH, Ratti C (2018) Addressing the minimum fleet problem in on-demand urban mobility. Nature 557(7706):534.

    Google Scholar 

  • Zhang, R, Pavone M (2016) Control of robotic mobility-on-demand systems: a queueing-theoretical perspective. Int J Robot Res 35(1-3):186–203.

    Google Scholar 

Download references


We thank Stephan Herminghaus, Marc Timme, Malte Schröder, Phillip Marszal, Nils Bayer and Felix Jung for fruitful discussions.


This research was supported by the European Fond for Regional Development (EFRE) through the state of Lower Saxony, and the Max Planck Society. Open access funding provided by Projekt DEAL.

Author information

Authors and Affiliations



DM and NM conceived, designed and carried out the research, DM carried out the simulations, DM and NM wrote the manuscript. Both authors read and approved the final manuscript.

Corresponding author

Correspondence to Nora Molkenthin.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Manik, D., Molkenthin, N. Topology dependence of on-demand ride-sharing. Appl Netw Sci 5, 49 (2020).

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: