arXiv:1303.5456v2 [math.CO] 25 Mar 2013
Balanced Abelian group valued functions on directed graphs. Yonah Cherniavsky Ariel University, Israel
[email protected]
Avraham Goldstein City University, New-York, USA
[email protected]
Vadim E. Levit Ariel University, Israel
[email protected] Abstract We discuss functions from the edges and vertices of a directed graph to an Abelian group. Such functions, when the sum of their values along any cycle is zero, are called balanced and form an Abelian group. We study this group in two cases: when we allowed to walk against the direction of an edge taking the opposite value of the function and when we are not allowed to walk against the direction. Keywords: consistent graphs; balanced signed graphs; balanced labelings of graphs; gain graphs; weighted graphs.
1
Introduction.
Let A be an Abelian group with the group operation denoted by + and the identity element denoted by 0. Let G be a graph. Roughly speaking, an Avalued function f on vertices and/or edges of G is called balanced if the sum of its values along any cycle of G is 0. Our cycles are not permitted to have repeating edges. The study of balanced functions can be conducted in three cases: 1. The graph G is directed with the set of vertices V and the set of directed edges E. When traveling between the vertices, we are allowed to travel with or against the direction of the edges. The value of a function f on e¯, which represents traveling the edge e against its direction, is equal to −f (e). In this context, when the function is defined on edges only, the pair (G, f ) is called a network or a directed network. In this paper we shall call this the flexible case, meaning that the direction of an edge does not forbid us to walk against it. The notion of balanced functions on edges for the flexible case, for functions taking values only on the edges, 1
is introduced in the literature under different names. Thus, for example, in [1] the set of such functions is exactly Im(d) and in [6], in somewhat different language, that set is referred-to as the set of consistent graphs. In a rather common terminology introduced by Zaslavsky, [8], a pair of graph and such a function on edges of a graph is called a gain graph. 2. The graph G is directed with the set of vertices V and the set of directed edges E, but we are only allowed to travel with the direction of the edges. In this paper we shall call this the rigid case. When f takes values only on the edges then in some literature, following Sierre, the flexible case is described as a particular instance of the rigid case by introducing the set E as the new set of directed edges of G (the cardinality of E is twice that of E), denoting by e¯ ∈ E the inverse of the directed edge e¯ ∈ E and requiring f (¯ e) = −f (e), [1], [7]. 3. The graph G is undirected. The value of a function f on an edge e does not depend on the direction of the travel on e. The case of balanced functions f : E → R is studied in [2], where these functions are called “cyclevanishing edge valuations”. The case of balanced functions f : E → A S is studied in [3]. The case of balanced functions f : V E → A is first introduced and studied in [5] and then is studied in [3]. The subject of this paper is the group structure and the relations between groups of functions, associated with the notion of balance, on a directed graph. Namely, we study the group structures of the groups of balanced functions for the flexible and the rigid cases and the relations between these two cases. In this article we calculate the groups of balanced functions on edges, balanceable functions on vertices and balanced functions on vertices and edges of a directed graph with values in an Abelian group for both flexible and rigid cases. Note that if we take functions with values in a non-Abelian group then the sets of the balanced function on edges, balanceable functions on vertices and balanced functions on vertices and edges do not inherit any natural group structure. However our methods still enable to find the number of these functions when the non-Abelian group is finite. In what follows we say that a directed graph is weakly connected if its underlying undirected graph is connected. For the basics of Graph Theory we refer to [4].
2
The flexible case.
Let G = (V, E) be a weakly connected directed graph, possibly with loops and multiple edges. Let v, w ∈ V be two vertices connected by an edge e; v is the origin of e and w is the endpoint of e. For e ∈ E denote by e¯ the same edge as e but taken in the opposite direction. Thus e¯ goes from w to v. Let E = {e, e¯ | e ∈ E}.
2
Definition 2.1. A path P from a vertex x to a vertex y is an alternating sequence v1 , e1 , v2 , e2 , ..., vn , en of vertices from V and different edges from E such that v1 = x and each ej , for j = 1, ..., n − 1, goes from vj to vj+1 and en goes from vn to y. We permit the same edge e to appear in a path twice - one time along and one time against its direction, since this is regarded as using two different edges from E. We require our graphs to be weakly connected. Namely, any two different vertices of our graph G can be connected by a path. Definition 2.2. A path P from a vertex x to itself is called a cycle. We permit the trivial cycle, which is the empty sequence containing no vertices and no edges. Definition 2.3. A cycle is called simple if it contains every vertex at most one time. In other words vi 6= vj if i 6= j. Definition 2.4. The length of a cycle is the number of its edges. Definition 2.5. A function f : E → A such that f (¯ e) = −f (e) is called balanced if the sum f (e1 ) + ... + f (en ) of the values of f over all the edges of any cycle of G is equal to 0. Definition 2.6. The set of all the balanced functions f : E → A is denoted by HF (E, A). HF (E, A) is a subgroup of the Abelian group AE of all the functions from E to A. Definition 2.7. A function g : V → A is called balanceable if exists some f : E → A such that f (¯ e) = −f (e) and the sum of all the values g(v1 ) + f (e1 ) + g(v2 ) + f (e2 ) + ... + g(vn ) + f (en ) along any cycle of G is zero. We say that this function f : E → A balances the function g : V → A. Definition 2.8. The set of all the balanceable functions g : V → A is denoted by BF(V, A). The group BF(V, A) is a subgroup of the free Abelian group AV of all the functions from V to A. S Definition 2.9. A function h : V E → A, which takes both vertices and edges of G to some elements of A, is called balanced if h(¯ e) = −h(e) and the sum of its values h(v1 ) + h(e1 ) + h(v2 ) + h(e2 ) + ... + h(vn ) + h(en ) along any cycle of G is zero. S Definition 2.10. The set of all the balanced functions h : V E → A is denoted by (G, A) is a subgroup of the Abelian S WF (G, A). The group WFS group AV E of all the functions from V E to A. Clearly, any balanced function f ∈ HF (E, A) can be viewed as a balanced S function from V E to A which takes zero value S on every vertex of G. Thus, we will regard HF(E, A) as a subgroup of WF (V E, A).
3
Proposition 2.11. The quotient WF (V morphic to BF(V, A).
S
E, A)/HF (E, A) is naturally iso-
Proof. The S natural isomorphism is defined by “forgetting” the values of h ∈ WF(V E, A) on the edges of G and regarding it just as a balanceable function from V to A. We review some basic definitions and facts regarding Abelian groups. Definition 2.12. The order ord(a) of an element a ∈ A is the minimal positive number such that ord(a)a = 0. If no such positive number exist we say that ord(a) = ∞. Definition 2.13. The set of all elements of A of order 2 is denoted by A2 . A2 is a subgroup of A. The group HF (E, A) is well understood and the following fact is well known. Proposition 2.14. The group HF (E, A) is isomorphic to A|V |−1 . Proof. Select a vertex v and consider the following bijection between the group of all A-valued functions g on V such that g(v) = 0 and the group HF (E, A). For any such g, since each edge e ∈ E goes from some vertex x to some vertex y, we define f (e) = g(y) − g(x). A straightforward calculation shows that f ∈ HF (E, A). In the other direction of the bijection, for f ∈ HF (E, A) we inductively construct the function g as follows: we set g(v) = 0; if g(u) has been defined for a vertex u then for every vertex w, for which exists some edge e from u to w, we define g(w) = g(u) + f (e). Since f ∈ HF (E, A), any two calculations of the value of g on any vertex u will produce the same result. Thus, our g is well-defined. Obviously, the bijection, constructed above, is a group isomorphism. Now we can state and prove one of our main results. Theorem 2.15. Let G = (V, E) be a weakly connected directed graph and G′ be its underlying undirected graph. Then: S 1. If G′ is bipartite, then the group WF(V E, A) is isomorphic to A|V | . S 2. If G′ is not bipartite, then WF (V E, A) is isomorphic to A2 × A|V |−1 . Proof. If G consists only of one vertex then the (1) part of our theorem is trivial. Otherwise, let us look at any one non-loop edge of G: a
p
// b
The S letters on the edge and the vertices denote the values S of a function h : V E → A. Assume that h is balanced, i.e. h ∈ WF (V E, A). Then for the
4
cycle obtained by walking along this edge and returning back along it we have the following equation: a+p+b−p=0 , which immediately implies that b = −a . Thus h must have opposite values on any two vertices of G connected by an edge. Assume that G′ is bipartite, which implies that G has no cycles of odd length. Then h, restricted to the edges, must be equal to some balanced function f ∈ HF (E, A) on the edges. Now select any vertex v ∈ V . We can construct a balanced function h on vertices and edges by: for any element a ∈ A define h(v) = a and then define h for all the neighbors of v to be −a and then for all the neighbors of the neighbors of v define h to be a and so on. Continuing this way we will assign values a or −a to all the vertices of G. Since all the cycles are of even length, we will not get a contradiction in that process. Next we choose any function f ∈ HF (E, A) and we set h on S the edges to be equal to f . Hence, we constructed a bijection between WF (V E, A) and the group of pairs {(a, f ) | a ∈ A, f ∈ HF (E, A)}. This bijection is obviously also a group isomorphism. And {(a, f ) | a ∈ A, f ∈ HF(E, A)} is isomorphic to A|V | , since the group HF (E, A) is isomorphic to A|V |−1 by Proposition 2.14. Now assume that G′ is not bipartite, i.e., G has a cycle of odd length.SAs we have already seen above, the values of a balanced function h ∈ WF (V E, A) on the vertices must be a and −a for some a ∈ A. But walking along a cycle of odd length greater than 1 we get that a = −a, i.e. 2a = 0, which S exactly means that a ∈ A2 . Thus we construct a bijection between WF (V E, A) and the group of pairs {(a, f ) | a ∈ A2 , f ∈ HF(E, A)}. This bijection is a group isomorphism. And {(a, f ) | a ∈ A2 , f ∈ HF (E, A)} is isomorphic to A2 ×A|V |−1 , since the group HF (E, A) is isomorphic to A|V |−1 by Proposition 2.14. Note that if G has a loop edge e from a vertex v to itself then both h(v) + h(e) and h(v) − h(e) must be 0 since we can travel on e in both directions. This implies that h(v) = h(e) and 2h(v) = 0. Remark 2.16. Let G = (V, E) be a weakly connected directed graph and G′ be its underlying undirected graph. Notice that if the graph G′ is bipartite, then the group of balanceable functions BF(V, A) is isomorphic to A and if G′ is not bipartite, then the group of balanceable functions BF(V, A) is isomorphic to A2 - the group of involutions of A.
3
The rigid case.
Let G = (V, E) be a weakly connected directed graph. Recall that in this case we are allowed to walk only in the direction of an edge but not against it. It naturally changes the notion of a path and of a cycle in comparison with the flexible case.
5
Definition 3.1. A path P from a vertex x to a vertex y is an alternating sequence v1 , e1 , v2 , e2 , ..., vn , en of vertices from V and different edges from E (and not E) such that v1 = x and each ej , for j = 1, ..., n − 1, goes from vj to vj+1 and en goes from vn to y. For example, this triangle ?? • __❄ ⑧⑧ ❄❄❄ ⑧ ❄❄ ⑧ ❄❄ ⑧⑧ ⑧ ❄❄ ⑧⑧ ❄❄ ⑧ ⑧ ❄❄ ⑧ ⑧ ⑧ // • • is a cycle in the flexible case but not in the rigid case. S Similarly to the flexible case denote by BR(V, A), HR(E, A) and WR(V E, A) the groups of balanceable functions on vertices, balanced functions on edges and balanced functions of the entire graph G (vertices and edges), respectively. Proposition 3.2. Any function on the set of vertices is balanceable. I.e., BR(V, A) = AV . Proof. S Let us take a function on vertices g : V → A. Define the function h : V E → A in the following way: h(v) = g(v) for any vertex v ∈ V , h(e) = −g(v) for all the edges e ∈ E which start at v. Obviously h is a balanced function. Definition 3.3. Two vertices x and y of G are called strongly connected if exists a path P1 from x to y and a path P2 from y to x. We also say that every vertex is strongly connected to itself. Note: We did not require that P1 and P2 do not have common edges. Definition 3.4. A cycle is a path P from a vertex x to itself. We denote the set of all the cycles of G by C(G). Note: Since the above-mentioned P1 and P2 paths might have common edges, P1 followed by P2 might not be a cycle. There could even not exist any cycle, containing both x and y. Consider the following example: Example 3.5. Let V (G) = {x, v, w, y} and E(G) = {e1 , e2 , e3 , e4 , e5 } where e1 = (x, v), e2 = (y, v), e3 = (w, x), e4 = (w, y) and e5 = (v, w).The path P1 = e1 , e5 , e4 is the only path which goes from x to y and the path P2 = e2 , e5 , e3 is the only path which goes from y to x. They have a common edge e5 . Thus,
6
there exist no cycle, containing both x and y. e2 yOO vOO ❄oo ❄❄ ❄❄ ❄❄ ❄❄e5 e1 e4 ❄❄ ❄❄ ❄❄ ❄❄ x oo w e3
Strong connectivity defines an equivalence relation on the vertices of G. The equivalence classes of strongly connected vertices, together with all the edges between the vertices of each class, are called the strongly connected components ¯ of G. We denote the number of strongly connected components of G by k(G). ¯ Lemma 3.6. If k(G) = 1 then the group HR(E, A) is isomorphic to A|V |−1 just like in the flexible case. Proof. Let E = {e1 , ..., en }. Edge e1 goes from some x to some y. There is a path P which goes from y to x and does not contain e1 , since if P contains e1 we can just delete this e1 and all the vertices and edges, which come after it, from P . Thus, the sum of values of f ∈ HR(E, A) along P must be equal to −f (e1 ). Hence we can add a new edge e¯1 to G which goes from y to x and we can extend the function f to a balanced function on edges of the new G if and only if we set f (¯ e1 ) = −f (e1 ). So the group of the balanced functions on edges of G after the addition of e¯1 is naturally isomorphic to the original group of the balanced functions on edges of G before the addition. Repeating this process for all the edges of E we reduce G to the flexible case, while not changing the group of the balanced functions on edges of G. ¯
Theorem 3.7. The group HR(E, A) is isomorphic to A|V |−k(G)+r(G) , where r(G) is the number of all the edges in G which go from a vertex in one strongly connected component of G to a vertex in a different strongly connected component of G. Proof. Let V1 , ...Vt be the equivalence classes of vertices G and denote the set of edges between the vertices of Vj by Ej . Then HR(E, A) = HR(E1 , A) × · · · × HR(Et , A) × AU , where U is the set of all the edges between the vertices in different strongly connected components of G. By Lemma 3.6 we conclude that ¯ HR(E, A) is isomorphic to A|V1 |−1+|V2 |−1+···+|Vt |−1+r(G) = A|V |−k(G)+r(G) . S ¯ Theorem 3.8. WR(V E, A) is isomorphic to A|V | × A|V |−k(G)+r(G) S Proof. To every h ∈ WR(V E, A) corresponds the pair (g, f ), where g ∈ BR(E, A) is just the restriction of h on vertices, and the value of f ∈ HR(E, A) on every edge e is equal to h(e)+h(v), where the vertex v the origin of the edge g. Such a function h is obviously a balanced function on edges since its value along any path is equal to the value of h along that path. This correspondence between 7
S the elements of WR(V E, A) and the pairs from BR(E, A) × HR(E, A) is a bijection. Indeed, for a given pair (g, f ), where g is any function on vertices and S f is a balanced function on edges, we can construct h : V E → A as follows: h(v) = g(v) for all v ∈ V and h(e) = f (e) − g(v) for all e ∈ E, where the vertex v is the origin of the edge e. The constructed bijection obviously is a group isomorphism. Thus, the flexible problem for a graph G = (V, E) can be regarded as the rigid problem for the graph G′ = (V, E). Vice versa, the rigid problem for a graph G can be regarded as a free product of the rigid problems for the strongly connected components of G also multiplied by Ar(G) where r(G) is the number of edges between different strongly connected components of G. We finish this paper with the following simple claim, which connects this work to [3]. Proposition 3.9. Let G be an undirected connected graph and let Gdir be a directed graph obtained from G by any assigning of directions to the edges of G. Denote by H(E, A) the group of A-valued balanced functions on edges of G. Choose any order on edges of G and embed H(E, A) and HR(E(Gdir ), A) into A|E| . For an undirected graph G the group of balanced functions on edges of G is equal to the intersection of all the groups HR(E(Gdir ), A), where Gdir runs over all directed graphs for all 2|E| possible direction assignments to the edges of G. The same is true for the groups of S balanced functions onSthe entire graph T (both vertices and edges). Namely, W (V E, A) = WR(V E(Gdir ), A). Proof. Let Cyc = v1 , e1 , ..., vk , ek be a cycle in the undirected graph G. There T exists a directed graph Gdir for which c is also a cycle. So any f ∈ HR(E(Gdir ), A) Pk must satisfy the equation i=1 f (ei ) = 0. Therefore f ∈ H(E, A), since Cyc is an arbitrary cycle of G. Hence, \ H(E, A) ⊇ HR(E(Gdir ), A) . The opposite inclusion is obvious, since any cycle of any Gdir is a cycle of G. The proof of the second statement of the proposition is the same.
References [1] Roland Bacher, Pierre de la Harpe, Tatiana Nagnibeda. The lattice of integral flows and the lattice of integral cuts on a finite graph. Bulletin del la S.M.F., tome 125, number 2 (1997). [2] R. Balakrishnan and N. Sudharsanam. Cycle vanishing edge valuations of a graph. Indian J. Pure Appl. Math. 13 (3) (1982), 313 − 316. [3] Y. Cherniavsky, A. Goldstein and V. E. Levit. On the structure of the group of balanced labelings on graphs. Preprint available at http://arxiv.org/abs/1301.4206. 8
[4] R. Diestel. Graph Theory. Springer; 4th edition 2010. Corrected 2nd printing 2012 edition. [5] Manas Joglekar, Nisarg Shah, Ajit A. Diwan. Balanced group-labeled graphs. Discrete Mathematics 312 (2012), 1542 − 1549. [6] Martin Kreissig, Bin Yang. Efficient Synthesis of Consistent Graphs. EURASIP, 2010, ISSN 2076 − 1465, 1364 − 1368. [7] Sierre, Jean-Pierre. Arbres, amalgames, SL2 (1977; Trees). [8] T. Zaslavsky. A mathematical bibliography of signed and gain graphs and allied areas. Electron. J. Combin. 5, (1998). Dynamic Surveys in Combinatorics, No. DS8 (electronic).
9