310
Chapter
20.
Isometric Embeddings
of
Graphs into Cartesian
Products
suspension
of
a geodetic graph of diameter
at
most
2.
(A geodetic
graph
is a
graph in which there
is
exactly one shortest
path
joining any
pair
of
nodes.)
Embedding
Metrics
into
Graphs.
We
now consider the question of embed-
ding metrics into graphs or, more generally, into weighted graphs.
This
topic
has many applications in various areas, such as psychology (Cunningham
[1978])
and
biology (Penny, Foulds
and
Hendy [1982]).
Let G
= (V,
E)
be
a
graph
and
let
We
E ll4 (e E
E)
be nonnegative weights
assigned to its edges.
The
path
metric
da,w
of the weighted graph (G,w)
is
defined by letting da,w(x,
y)
denote the smallest value
of
LeEE(P)
We,
taken over
all
paths
P joining x
and
y in G.
Given a finite metric space
(X,d), one says
that
the
weighted graph (G,w)
realizes
(X,
d)
if there exists a mapping i
EX
f--->
Xi
E V such
that
for all
i,j
E
X.
The
graph G may have more nodes
than
those corresponding to
points
of
X.
Every metric space
can
clearly be realized by some graph, namely,
by
the
complete graph on
IXI
nodes with weights
d(i,j)
on its edges. Consider,
for instance,
the
metric d on X
{I,
2,
3}
defined
by
d(1,2) =
4,
d(1,3) =
8,
d(2,3) = 6. Then, d can be realized by
the
following two weighted graphs:
K3
and
a tree
with
one auxiliary node.
3
The
objective is, therefore, to find a graph
(G,
w)
realizing (X,
d)
whose
total
weight
We
is as small as possible.
The
existence of
an
optimal realization,
i.e., with minimum
total
weight among all possible realizations, was shown in
Imrich, Simoes-Pereira
and
Zamfirescu
[1984].
But
finding an optimal realiza-
tion
is
an
NP-hard
problem even if
the
metric is assumed to be integer valued
(AlthOfer
[1988],
Winkler [1988]).
On
the
other
hand, the metric spaces
that
can be realized by weighted trees
are well characterized; such graphs have been introduced earlier under
the
name
of
tree metrics. Namely, (X,
d)
is
realizable by a weighted tree, if
and
only
if
d
satisfies
the
following condition, known as the four-point cond·ition:
d(i,j)
+ d(r,
8)
::;
max(d(i, r) + d(j,
8),
dei,
8)
+ d(j, r)),
i.e.,
the
two largest of the three sums d(i,j)+d(r,
8),
dei,
r )+d(j, s),
dei,
s)+d(j, r)
are equal, for all
i,j,r,s
E X (Buneman [1974]). Note
that
the
four point