2

Let's say we have $n$ points numbered from $1$ to $n$.

What is the maximum number of directed edges possible on a graph with these $n$ points:

  • without any cycle of length $\leq k$, for example without cycles of length 2, 3, 4

  • such that the number of edges arriving on all points are "balanced". More precisely, if we note $N(j)$ the number of edges arriving on the point $j$, we want that:

    $$\frac{\max_{1 \leq j \leq n} N(j)}{\min_{1 \leq j \leq n} N(j)} \leq 2, \qquad \textrm{ or any other constant i.e. }O(1)$$

Even if we don't find the exact maximum, how could we find an estimate?


Notes:

The idea for the 2nd bullet point is that we want $(N(j))_{1 \leq j \leq n}$ to be uniformly distribued among all points, i.e. we don't want a point that receives hundreds of incoming edges, whereas another point receives nearly no incoming edge at all!

For example the answer of Maximum number of edges in a directed graph on $n$ vertices without cycles is not satisfying because, here with $n=6$,

  • 5 edges arrive on point #6
  • 0 edges are arriving on point #1

so here $\max N(j) / \min N(j) = +\infty$.

enter image description here

Also Maximum number of edges of a planar graph without cycles of length 3 and 4 seems linked but doesn't give any solution or construction for a solution when $n$ is large.

Basj
  • 1,591
  • 1
    I proposed an edit to your problem because the problem now is not that clear from the title... I think the "balanced" constraint need to be stated in the title. – JetfiRex Jan 20 '22 at 00:02
  • 1
    I would like to say that there is a lower bound is around $n^2/(k+1)$ if the in-degree has ratio $1+o(1)$..., we can split the edges into $k+1$ pieces and make one part points the next one... But this means that $O(n^2)$ is possible. – JetfiRex Jan 20 '22 at 00:10
  • 1
    Similarly, we can construct a graph that with $\Omega(n^2l/k)$ if $k$ is the constraint of cycle, and $l<k$ is the constraint of $\frac{\max_{1 \leq j \leq n} N(j)}{\min_{1 \leq j \leq n} N(j)}$. For even larger $l$ I am still figuring out a bound. – JetfiRex Jan 20 '22 at 00:53
  • 1
    For even larger $l$, there is a lower bound around $n^2\frac{l^2}{2(l+k)^2}$ – JetfiRex Jan 20 '22 at 00:56

1 Answers1

1

I can't find the exact maximum, but I can proof the following match bounds (that is, up to a constant time): if there is no $k$-cycle, and $\frac{\max_{1 \leq j \leq n} N(j)}{\min_{1 \leq j \leq n} N(j)}\le l$, suppose the maximum number of edges be $E$, then we have

$$\frac{n^2l}{8k}+O(n)\le E\le \frac{3n^2l}{2k}$$

for $l\le k/3$.

The construction for lower bound: suppose the vertices are split into sets $X_1,X_2,\dots,X_m,X_{m+1},X_{m+2},\dots,X_{k+1}$ such that $|X_1|=|X_2|=\dots=|X_m|=\frac{nl}{2k}$ and $|X_{m+1}|=|X_{m+2}|=\dots=|X_{k+1}|=\frac{n}{2k}$. Let $m=\frac{k}{l}$. We ignore the remainders. Therefore, we can give a graph go from $X_i$ to $X_{i+1}$ (indices modulo $k+1$), and we have $E\ge (m-1)(\frac{nl}{2k})^2\ge \frac{k}{2l}(\frac{nl}{2k})^2=\frac{n^2l}{8k}$.

The proof for upper bound: From a point $v$, we do backward BFS. That is, we have $A_1,A_2,\dots,A_k$ be the sets of vertices TOWARDS $v$ in distance $1,2\dots,k$, respectively. We know that the indegree of $A_i$ only comes from $A_i$ itself or $A_{i+1}$. If it has indegree after $A_{i+1}$, this violates the property of BFS. If it has indegree before $A_i$, there is a cycle no longer than $k$. Let $X=V\backslash \bigcup_{i=1}^k A_i$ ($V$ is the vertex set), and the indegree to $A_k$ must come from $A_k$ or $X$. So we have the minimum indegree for the vertices in $A_i$ is no more than $|A_i|/2+|A_{i+1}|$, and the minimum indegree for the vertices in $A_k$ is no more than $|A_k|/2+|X|$. So, the minimum indegree of the vertices in $A_1,\dots,A_k$ is no more than the average, that is, $\frac{1}{k}(\sum_{i=1}^{k-1}|A_i|/2+A_{i+1}+|A_k|/2+|X|)\le \frac{3n}{2k}$. Therefore, the indegree is no more than $3nl/2k$ for each vertex, and thus the total number of edges is $3n^2l/2k$.

For $l\ge k/3$, we give a lower bound of $\frac{n^2l^2}{2(l+k)^2}+O(n)$. We again split the vertices into $X_1=Y_1,X_2,\dots,X_{l+1}=Y_2, Y_3,\dots,Y_{k+1}$ such that all the sets are having $\frac{n}{k+l}$ vertices (we still ignore the remainders). Then we connect all the edges from $X_i$ to $X_j$ for $1\le i<j\le l+1$, and all edges from $Y_i$ to $Y_{i+1}$ (indecis modulo $k+1$.) So the total number of edges is $(\frac{n}{k+l})^2(\frac{l(l+1)}{2}+k)=\frac{n^2l^2}{2(k+l)^2}$.

JetfiRex
  • 3,315
  • Thank you very much for your answer, I'm going to study this! – Basj Jan 20 '22 at 08:03
  • @Basj Sorry I wrote this when I am doing exercise... thank you for your comments, now I have fixed and clarified that – JetfiRex Jan 20 '22 at 21:43
  • Thanks @JetfiRex. Can you give an example graph for $n=10$ such that there is no 2, 3 or 4-cycle, and $\max / \min \leq 2$ (or even 4)? (with Python or with a handwritten sketch). Without an example, here, I still cannot grasp the idea for the actual construction of the graph for the lower bound. – Basj Jan 21 '22 at 07:59
  • What do you mean by $X_1=Y_1,X_2,\dots,X_{l+1}=Y_2, Y_3,\dots,Y_{k+1}$? Why is $Y_2 = X_{l+1}$, and what is $Y_3$? Again an example with a small $n$ might be helpful. Thanks in advance! – Basj Jan 21 '22 at 08:02
  • @Basj This means that $X_1$ It's also labeled as $Y_1$, and $X_{l+1}$ It's also labeled as $Y_2$, and $Y_3$ is another set. There is no “why” about this, it's just a labeling thing. – JetfiRex Jan 21 '22 at 15:02
  • @Basj 10 points are too less, I am going to give a 24 point construction of both means with $k=4$ and $l=2$ (I'm not going to play around with the remainder so I take the gcd). The first construction split the point into A:6, B:6, C:3, D:3, E:3 five parts (I know there is less than 24, but you can add it to 6, 6, 4, 4, 4) And then we connect all the points from A to B, from B to C, from C to D, from D to E, from E to A. The second construction is split the points into 6 parts A1, A2, B, C D, E with 4 points each, connect all points from A1 to A2, A1, A2 to B, B to C, C to D, D to E, E to A1. – JetfiRex Jan 21 '22 at 15:13
  • @Basj I think it is even more helpful if you try to draw the constructions on a paper or something yourself. – JetfiRex Jan 21 '22 at 15:15