Let $G$ be a $d$-regular graph. Suppose that $G$ is bipartite with bipartition $(A,B)$. Prove that if $d>0$ then $|A| = |B|$. Also why is this statement false when $d=0.$
I'm not sure how to show this. It makes sense in my head but that isn't enough.
Each vertex has $d$ edges and no two vertices in $A$ (or $B$) are connected. So in total, $A$ has $|A|d$ edges coming out of it and $B$ has $|B|d$ edges going into it. Can those be different?