Which of the following adjacency matrices represent a bipartite graph?
A = ⎝ ⎜ ⎜ ⎜ ⎜ ⎛ 0 1 1 0 0 1 0 0 1 0 1 0 0 0 0 0 1 0 0 1 0 0 0 1 0 ⎠ ⎟ ⎟ ⎟ ⎟ ⎞ , B = ⎝ ⎜ ⎜ ⎜ ⎜ ⎛ 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 ⎠ ⎟ ⎟ ⎟ ⎟ ⎞
C = ⎝ ⎜ ⎜ ⎜ ⎜ ⎛ 0 0 1 0 0 0 0 1 0 0 1 1 0 1 1 0 0 1 0 0 0 0 1 0 0 ⎠ ⎟ ⎟ ⎟ ⎟ ⎞
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
A purely computational approach would be to consider the matrix A 2 + A 4 + A 6 + … for enough terms. What can we say about it?
Is there a way to solve this without drawing each graph?
Log in to reply
A purely computational approach would be to consider the matrix A 2 + A 4 + A 6 + … for enough terms. What can we say about it?
Log in to reply
Another necessary and sufficient characterization of the bipartite graph is that it contains no odd cycles. Hence if Trace ( A 2 k + 1 ) = 0 for all k ≤ ⌊ n / 2 ⌋ , where n is the number of nodes in the graph, then the graph is bipartite.
Certainly! An adjacency matrix A represents a bipartite graph if and only if there exists a permutation P such that
P A P = ( 0 B T B 0 )
where 0 is a zero matrix and B is a non-zero matrix.
For example, for matrix A in the problem, a possible permutation matrix is
P = ⎝ ⎜ ⎜ ⎜ ⎜ ⎛ 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 ⎠ ⎟ ⎟ ⎟ ⎟ ⎞
We see that
P A P = ⎝ ⎜ ⎜ ⎜ ⎜ ⎛ 0 0 0 1 1 0 0 1 1 0 0 1 0 0 0 1 1 0 0 0 1 0 0 0 0 ⎠ ⎟ ⎟ ⎟ ⎟ ⎞
Here B = ( 0 1 1 1 1 0 ) . Since a permutation matrix satisfying the required condition exists, the matrix represents a bipartite graph.
Problem Loading...
Note Loading...
Set Loading...
Bipartite graphs are graphs whose vertices can be partitioned into two disjoint sets such that every edge has one endpoint in one set and the other endpoint in the other set. The figure at the beginning of the problem is an example of a bipartite graph. For every edge in the graph, we can see that one endpoint is blue and the other endpoint is green.
We will now identify which graphs out of A, B and C are bipartite. A simple way to do this is to draw the graphs. We are given adjacency matrices , in which row i and column i correspond to vertex i . The element a i , j in the matrix represents the number of edges connecting vertices i and j . For example, if a 2 , 3 = 5 , then it means that 5 edges connect vertices labeled 2 and 3 .
We will read the given adjacency matrices row by row and draw the corresponding graphs. Since the matrices are symmetric, the graphs are undirected and we need to only consider the upper (or lower) triangular parts of the matrices. The following matrix is upper triangular matrix of A.
A = ⎝ ⎜ ⎜ ⎜ ⎜ ⎛ 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 0 ⎠ ⎟ ⎟ ⎟ ⎟ ⎞
In matrix A,
row 1 has "1"'s in columns 2 and 3, therefore we draw one edge between vertices 1 and 2 and we draw one edge between vertices 1 and 3.
In row 2, there is a "1" in column 4, therefore we must draw one edge between vertices 2 and 4.
In row 4, there is a "1" in column 5, therefore we must draw one edge between vertices 4 and 5.
We obtain the following graph. Note that we can color the graphs using two colors such that each edge has one blue endpoint and one green endpoint. Therefore, Graph A is bipartite.
Graph A
We can draw graphs for matrices B and C in a similar way.
Graph B
Graph C
We see that in all three graphs, we can color vertices using two colors such that each edge has one blue endpoint and one green endpoint. Therefore all three graphs are bipartite. □