We consider the problem of finding a balanced ordering of the vertices of a graph. More precisely, we want to minimise the sum, taken over all vertices v, of the difference between the number of neighbours to the left and right of v. This problem, which has applications in graph drawing, was recently introduced by Biedl et al. [Discrete Applied Math. 148:27―48, 2005]. They proved that the problem is solvable in polynomial time for graphs with maximum degree three, but NP-hard for graphs with maximum degree six. One of our main results is to close the gap in these results, by proving NP-hardness for graphs with maximum degree four. Furthermore, we prove that the problem remains NP-hard for planar graphs with maximum degree four and for 5-regular graphs. On the other hand, we introduce a polynomial time algorithm that determines whetherthere is a vertex ordering with total imbalance smaller than a fixed constant, and a polynomial time algorithm that determines whether a given multigraph with even degrees has an 'almost balanced' ordering.
[1]
Thomas J. Schaefer,et al.
The complexity of satisfiability problems
,
1978,
STOC.
[2]
Goos Kant,et al.
Regular Edge Labeling of 4-Connected Plane Graphs and Its Applications in Graph Drawing Problems
,
1997,
Theor. Comput. Sci..
[3]
Timothy M. Chan,et al.
Balanced vertex-orderings of graphs
,
2005,
Discret. Appl. Math..
[4]
Goos Kant,et al.
A Better Heuristic for Orthogonal Graph Drawings
,
1994,
ESA.
[5]
David R. Wood,et al.
Minimising the Number of Bends and Volume in 3-Dimensional
Orthogonal Graph Drawings with a Diagonal Vertex Layout
,
2004,
Algorithmica.
[6]
F. Leighton,et al.
Drawing Planar Graphs Using the Canonical Ordering
,
1996
.
[7]
Ioannis G. Tollis,et al.
Algorithms for area-efficient orthogonal drawings
,
1998,
Comput. Geom..
[8]
David R. Wood,et al.
Optimal three-dimensional orthogonal graph drawing in the general position model
,
2003,
Theor. Comput. Sci..