
Directed Hypergraphs and Reciprocity:
Directed hypergraphs have been used for modeling chemical
reactions [Yadati et al., 2020], knowledge bases [Yadati et al., 2021], road networks [Luo et al., 2022],
bitcoin transactions [Ranshous et al., 2017], etc. To the best of our knowledge, there has been only one
attempt to measure the reciprocity of directed hypergraphs [Pearcy et al., 2014], where (a) a hypergraph
G
is transformed into a weighted digraph
¯
G
by clique expansion, i.e., by replacing each arc
ei
=
⟨Hi, Ti⟩
with the bi-clique from
Ti
to
Hi
, (b) a weighted digraph
¯
G′
is obtained in the same way from a hypergraph
G′
where, the perfectly reciprocal arc
⟨Ti, Hi⟩
of each arc
ei
=
⟨Hi, Ti⟩ ∈ E
is added if it is not already in
E
, and (c)
tr(¯
A2)/tr(¯
A′2)
, where
¯
A
and
¯
A′
are the weighted adjacency matrices of
¯
G
and
¯
G′
, respectively,
is computed as the reciprocity of
G
. Note that
tr
(
¯
A2
) corresponds to the weighted count of paths of
length two in
¯
G
that start and end at the same node, which is the same as the weighted count of mutually
linked pairs of nodes in
¯
G
, and
tr
(
¯
A′2
) is the count in the perfectly reciprocal counterpart. However, as
discussed in Section 1, clique expansion may cause substantial information loss [Yadati et al., 2020, Dong
et al., 2020, Yoon et al., 2020], and thus multiple directed hypergraphs whose reciprocities should differ,
if they are determined by a proper measure, can be transformed into the same directed graphs by clique
expansion. We further analyze the limitations of this approach based on axioms in the following section.
3 Directed Hypergraph Reciprocity
In this section, we present eight necessary properties of an appropriate hypergraph reciprocity measure.
Then, we present a family of reciprocity measures, namely HyperRec, and an algorithm for fast
computation of them. Lastly, we compare HyperRec with baseline measures to support its soundness.
3.1 Framework and Axioms
We present our framework for measuring hypergraph reciprocity. Then, we suggest eight axioms that any
reasonable reciprocity measure must satisfy.
Framework for Hypergraph Reciprocity:
Given a hypergraph
G
, we measure its reciprocity at two
levels:
•How much each arc (i.e., group interaction) is reciprocal.
•How much the entire hypergraph Gis reciprocal.
For a target arc, which we measure reciprocity for, multiple arcs should be involved in measuring its
reciprocity inevitably. For example, in Figure 1, arc
e2
’s head set and tail set overlap with
e1
and
e3
’s tail
set and head set, respectively, and thus we should consider both e1and e3in measuring e2’s reciprocity.
In graphs, however, only the arc with the opposite direction is involved in the reciprocity of an arc. This
unique characteristic of hypergraphs poses challenges in measuring reciprocity. The reciprocal set
Ri
of
a target arc
ei
is the set of reciprocal arcs that we use to compute the reciprocity of
ei
, We use
r
(
ei, Ri
)
to denote the reciprocity of an arc
ei
, where the domain is
E×
2
E
.
2
In graphs, a traditional reciprocity
measure [Newman et al., 2002] is defined as the proportion of arcs between nodes that point both ways,
and if we assign 1 to such an arc and 0 to the others as reciprocity, the proportion is equivalent to the
average reciprocity of arcs. Similarly, we regard, as the reciprocity of a hypergraph
G
, the average
reciprocity of arcs, i.e.,
r(G) := 1
|E|X|E|
i=1 r(ei, Ri).(1)
Motivations of axioms:
What are the characteristics required for
r
(
ei, Ri
) and
r
(
G
)? We introduce
eight axioms that any reasonable measure of
r
(
ei, Ri
) (Axioms 1-5) and
r
(
G
) (Axioms 6-8) should
satisfy. blue We first provide the motivation and necessity of the proposed axioms.
•
Incremental changes: Understanding when a value of a measure increases (decreases) helps users to
understand how the measure works and have faith in the values the measure returns. Without this
understanding, one cannot trust the measure, and this unreliability towards a measure may lead to
misinterpretation of the measured value. Thus, we propose Axioms 1-4 (and their generalized axioms)
to describe the cases where the value of a reciprocity measure increases (decreases).
•
Boundness: Establishing a finite range for a measure helps an intuitive comprehension of the numerical
extent of a characteristic. For instance, if a measure does not lie in a fixed range, it becomes challenging
to readily ascertain whether a particular hypergraph is reciprocal or not. Furthermore, a measure with
2Note that all arcs in Riare used in computing the reciprocity of ei, and thus it does not correspond to a search space.
4