﻿ On Graphs with Same Distance Distribution

Applied Mathematics
Vol.08 No.06(2017), Article ID:76975,9 pages
10.4236/am.2017.86062

On Graphs with Same Distance Distribution

Xiuliang Qiu1*, Xiaofeng Guo2,3

1Chengyi University College, Jimei University, Xiamen, China

2School of Mathematical Sciences, Xiamen University, Xiamen, China

3College of Mathematics and System Sciences, Xinjiang University, Urumchi, China    Received: April 18, 2017; Accepted: June 16, 2017; Published: June 19, 2017

ABSTRACT

In the present paper we investigate the relationship between Wiener number $W$ , hyper-Wiener number $R$ , Wiener vectors $WV$ , hyper-Wiener vectors $HWV$ , Wiener polynomial $H$ , hyper-Wiener polynomial $HH$ and dis- tance distribution $DD$ of a (molecular) graph. It is shown that for connected graphs $G$ and ${G}^{*}$ , the following five statements are equivalent: 1) $DD\left(G\right)=DD\left({G}^{*}\right)$ , 2) $WV\left(G\right)=WV\left({G}^{*}\right)$ , 3) $HWV\left(G\right)=HWV\left({G}^{*}\right)$ , 4) $H\left(G\right)=H\left({G}^{*}\right)$ , 5) $HH\left(G\right)=HH\left({G}^{*}\right)$ ; and if $G$ and ${G}^{*}$ have same dis- tance distribution $DD$ then they have same $W$ and $R$ but the contrary is not true. Therefore, we further investigate the graphs with same distance distribution. Some construction methods for finding graphs with same distance distribution are given.

Keywords:

Distance Distribution, Distance Matrix, Wiener Vector, Hyper-Wiener Vector 1. Introduction

The Wiener index is one of the oldest topological indices of molecular structures. It was put forward by the physico-chemist Harold Wiener  in 1947. The Wiener index of a connected graph $G$ is defined as the sum of distances between all pairs of vertices in $G$ :

$W=W\left(G\right)=\underset{\left\{u,v\right\}\subseteq V\left(G\right)}{\sum }{d}_{G}\left(u,v\right).$

where $V\left(G\right)$ is the vertex set of $G$ , and ${d}_{G}\left(u,v\right)$ is the distance between vertices $u$ and $v$ in $G$ .

As an extension of the Wiener index of a tree, Randić  introduced Wiener matrix $W$ and hyper-Wiener index $R$ of a tree. For any two vertices $i,j$ in $T$ , let $\pi \left(i,j\right)$ denote the unique path in $T$ with end vertices $i,j$ and the length ${d}_{ij}$ , let ${T}_{1,\pi \left(i,j\right)}$ and ${T}_{2,\pi \left(i,j\right)}$ denote the components of $T-E\left(\pi \left(i,j\right)\right)$ containing $i$ and $j$ , respectively, and let ${n}_{1,\pi \left(i,j\right)}$ and ${n}_{2,\pi \left(i,j\right)}$ denote the numbers of the vertices in ${T}_{1,\pi \left(i,j\right)}$ and ${T}_{2,\pi \left(i,j\right)}$ , respectively. Then the Wiener matrix $W$ and the hyper-Wiener number $R$ of $T$ can be given by $W=\left({w}_{ij}\right)$ , ${w}_{ij}={n}_{1,\pi \left(i,j\right)}\cdot {n}_{2,\pi \left(i,j\right)}$ , and $R={\sum }_{i .

In Refs.   , Randic and Guo and colleagues further introduced the higher Wiener numbers and some other Wiener matrix invariants of a tree $T$ . The higher Wiener numbers can be represented by a Wiener number sequence ${}^{1}W{,}^{2}W{,}^{3}W,\cdots$ , where ${}^{k}W={\sum }_{{d}_{i,j}=k,i . It is not difficult to see ${}^{1}W=W$ , and $R={{\sum }_{k=1,2,\cdots }}^{k}W$ .

After the hyper-Wiener index of a tree was introduced, many publications  -  have appeared on calculation and generalization of the hyper-Wiener index. Klein et al.  generalized the hyper-Wiener index so as to be applicable to any connected structure. Their formula for the hyper-Wiener index $R$ of a graph $G$ is

$R=R\left(G\right)=\frac{1}{2}\underset{\left\{u,v\right\}\subseteq V\left(G\right)}{\sum }\left({d}_{G}^{2}\left(u,v\right)+{d}_{G}\left(u,v\right)\right).$

The relation between Hyper-Wiener and Wiener index was given by Gutman  .

The Hosoya polynomial $H\left(G\right)$ of a connected graph $G$ was introduced by Hosoya  in 1988, which he named as the Wiener polynomial of a graph:

$H=H\left(G,x\right)=\underset{k\ge 0}{\sum }\text{ }\text{ }d\left(G,k\right){x}^{k},$

where $d\left(G,k\right)$ is the number of pairs of vertices in the graph $G$ that are distance $k$ apart.

In Ref.  , Cash introduced a new hyper-Hosoya polynomial

$HH=HH\left(G,x\right)=\underset{k\ge 0}{\sum }\frac{\left(k+1\right)}{2}d\left(G,k\right){x}^{k}.$

The relationship between the Hosoya polynomial and the Hyper-Hosoya polynomial was discussed  .

The sequence $\left(d\left(G,1\right),d\left(G,2\right),\cdots \right)$ is also known (since 1981) as the dis- tance distribution of a graph $G$  , denoted by $DD\left(G\right)$ . It is easy to see that $W={\sum }_{k\ge 0}\text{ }\text{ }k\cdot d\left(G,k\right)$ .

Later the definition of higher Wiener numbers is extended to be applicable to any connected structure by Guo et al.  . For a connected graph $G$ with n vertices, denoted by $1,2,\cdots ,n$ , let ${w}_{ij,k}=\mathrm{max}\left\{{d}_{ij}-k+1,0\right\}$ where ${d}_{ij}$ is the distance between vertices $i$ and $j$ . Then ${}^{k}W={\sum }_{i , $k=1,2,\cdots$ , are called the higher Wiener numbers of $G$ . The vector $\left({}^{1}W{,}^{2}W,\cdots \right)$ is called the hyper-Wiener vector of $G$ , denoted by $HWV\left(G\right)$ . The concept of the Wiener vector of a graph is also introduced in ref.  . For a connected graph $G$ with $n$ vertices, denoted by $1,2,\cdots ,n$ , let ${W}_{k}={\sum }_{i , $k=1,2,\cdots$ . The vector $\left({W}_{1},{W}_{2},\cdots \right)$ is called the Wiener vector of $G$ , denoted by $WV\left(G\right)$ .

Moreover, a matrix sequence $\left({W}^{\left(1\right)},{W}^{\left(2\right)},{W}^{\left(3\right)},\cdots \right)$ , called the Wiener matrix sequence, and their sum ${\sum }_{k=1,2,\cdots }{W}^{\left(k\right)}={W}^{\left(H\right)}$ , called the hyper-Wiener matrix, are introduced, where ${W}^{\left(1\right)}=D$ is the distance matrix. A Wiener polynomial sequence and a weighted hyper Wiener polynomial of a graph are also in- troduced.

In this paper, based on the results in ref.  , we study the relation between Wiener number $W$ , hyper-Wiener number $R$ , Wiener vector $WV$ , hyper- Wiener vector $HWV$ , Hosoya polynomial $H$ , hyper-Hosoya polynomial $HH$ and distance distribution $DD$ of a graph. It is shown that for connected graphs $G$ and ${G}^{*}$ , the the contrary is not true. This means that the distance dis- tribution of a graph is an important topological index of molecular graphs. Therefore, we further investigate the graphs with same distance distribution. It is shown that the graphs with same vertex number, edge number, and diameter 2 have same distance distribution. Some construction methods for finding graphs with same distance distribution are given.

2. The Relation between $W,R,WV,HWV,H,HH,DD$

Let $diam\left(G\right)$ denote the diameter of a graph $G$ .

Theorem 2.1. Let $G$ and ${G}^{*}$ be connected graphs. Then the following five statements are equivalent:

1) $G$ and ${G}^{*}$ have same distance distribution $DD$ ;

2) $G$ and ${G}^{*}$ have same Wiener vector $WV$ ;

3) $G$ and ${G}^{*}$ have same hyper-Wiener vector $HWV$ ;

4) $G$ and ${G}^{*}$ have same Wiener polynomial $H$ ;

5) $G$ and ${G}^{*}$ have same hyper-Wiener polynomial $HH$ .

Proof. We shall show the equivalent statements by (1)Þ(2)Þ(3)Þ(4)Þ(5)Þ(1).

(1)Þ(2). By the definitions of $DD$ and $WV$ ,

$DD\left(G\right)=\left(d\left(G,1\right),d\left(G,2\right),\cdots ,d\left(G,diam\left(G\right)\right)\right)$ , and

$WV\left(G\right)=\left({W}_{1},{W}_{2},\cdots ,{W}_{diam\left(G\right)}\right)=\left(1d\left(G,1\right),2d\left(G,2\right),\cdots ,diam\left(G\right)d\left(G,diam\left(G\right)\right)\right)$ .

Clearly, if $DD\left(G\right)=DD\left({G}^{*}\right)$ , then $WV\left(G\right)=WV\left({G}^{*}\right)$ .

(2)Þ(3). If $WV\left(G\right)=WV\left({G}^{*}\right)$ , then ${W}_{k}={\sum }_{i for $k=1,2,\cdots ,diam\left(G\right)$ . So ${}^{k}W\text{ }=\text{ }{\sum }_{i $=\text{ }{\sum }_{i for $k=1,2,\cdots ,diam\left(G\right)$ . Hence $HWV\left(G\right)=HWV\left({G}^{*}\right)$ .

(3)Þ(4). Suppose $HWV\left(G\right)=HWV\left({G}^{*}\right)$ . Then ${}^{k}W={}^{k}W{}^{*}$ for $k=1,2,\cdots$ , and $diam\left(G\right)=diam\left({G}^{*}\right)$ .

If $k=diam\left(G\right)=diam\left({G}^{*}\right)$ , then

$\begin{array}{c}{}^{k}W={\sum }_{i .

Assume, for $1 , $d\left(G,k\right)=d\left({G}^{*},k\right)$ . Let $k=l-1$ . Then

$\begin{array}{c}{}^{l-1}W={\sum }_{il-1}\mathrm{max}\left\{{d}_{ij}-l+2,0\right\}\\ =d\left(G,l-1\right)+{\sum }_{il-1}d\left(G,{k}^{\prime }\right)\left({k}^{\prime }-l+2\right)\end{array}$ , and

$\begin{array}{c}{}^{l-1}{W}^{*}={\sum }_{il-1}\mathrm{max}\left\{{d}_{ij}^{*}-l+2,0\right\}\\ =d\left({G}^{*},l-1\right)+{\sum }_{il-1}d\left({G}^{*},{k}^{\prime }\right)\left({k}^{\prime }-l+2\right)={}^{l-1}W\end{array}$ .

By induction hypothesis,

${\sum }_{il-1}d\left(G,{k}^{\prime }\right)\left({k}^{\prime }-l+2\right)={\sum }_{il-1}d\left({G}^{*},{k}^{\prime }\right)\left({k}^{\prime }-l+2\right)$ . So we have

$d\left(G,l-1\right)=d\left({G}^{*},l-1\right)$ .

Now it follows that $d\left(G,k\right)=d\left({G}^{*},k\right)$ for $k=1,2,\cdots$ , and so

$H\left(G,x\right)={\sum }_{k\ge 0}d\left(G,k\right){x}^{k}={\sum }_{k\ge 0}d\left({G}^{*},k\right){x}^{k}=H\left({G}^{*},x\right)$ .

(4)Þ(5). By the definitions of Hosoya polynomial $H$ and hyper-Hosoya polynomial $HH$ , it is easy to see that, if $H\left(G,x\right)=H\left({G}^{*},x\right)$ , then $HH\left(G,x\right)=HH\left({G}^{*},x\right)$ .

(5)Þ(1). If $HH\left(G,x\right)=HH\left({G}^{*},x\right)$ , then $d\left(G,k\right)=d\left({G}^{*},k\right)$ for $k=1,2,\cdots$ . Therefore $DD\left(G\right)=DD\left({G}^{*}\right)$ . □

Theorem 2.2. Let $G$ and ${G}^{*}$ be two graphs with same distance dis- tribution. Then $G$ and ${G}^{*}$ have same $W$ and $R$ .

Proof: By the definitions of $DD$ , $W$ and $R$ ,

$DD\left(G\right)=\left(d\left(G,1\right),d\left(G,2\right),\cdots ,d\left(G,diam\left(G\right)\right)\right)$ , $W\left(G\right)={\sum }_{\left\{u,v\right\}\subseteq V\left(G\right)}{d}_{G}\left(u,v\right)$ ,

and $R\left(G\right)=\frac{1}{2}{\sum }_{\left\{u,v\right\}\subseteq V\left(G\right)}\left({d}_{G}^{2}\left(u,v\right)+{d}_{G}\left(u,v\right)\right)$ .

Clearly, if $DD\left(G\right)=DD\left({G}^{*}\right)$ , then $W\left(G\right)=W\left({G}^{*}\right)$ and $R\left(G\right)=R\left({G}^{*}\right)$ . ,

However, the contrary of the theorem doesn’t hold. For instance, the trees ${T}_{1}$ and ${T}_{1}^{*}$ (resp. ${T}_{2}$ and ${T}_{2}^{*}$ ) in Figure 1 have same $W$ and $R$ , but they have different distance distributions.

3. Graphs with Same Distance Distribution

From the above theorems, one can see that, if two graphs $G$ and ${G}^{*}$ have

Figure 1. $W\left({T}_{1}\right)=W\left({T}_{1}^{*}\right)=86$ , $R\left({T}_{1}\right)=R\left({T}_{1}^{*}\right)=166$ , $DD\left({T}_{1}\right)=\left(8,14,6,8\right)$ , $DD\left({T}_{1}^{*}\right)=\left(8,13,9,5,1\right)$ . $W\left({T}_{2}\right)=W\left({T}_{2}^{*}\right)=98$ , $R\left({T}_{2}\right)=R\left({T}_{2}^{*}\right)=217$ , $DD\left({T}_{2}\right)=\left(8,10,8,5,4,1\right)$ , $DD\left({T}_{2}^{*}\right)=\left(8,11,6,5,6\right)$ .

same distance distribution $DD$ , then they have same $W,WW,WV,HWV,H$ and $HH$ . So it is significant to study the graphs with same distance dis- tribution.

1) The minimum non-isomorphic acyclic graphs with same DD

By direct calculation, we know the minimum non-isomorphic acyclic graphs with same distance distribution are the following two pairs of trees in Figure 2 which have 9 vertices.

2) The minimum non-isomorphic cyclic graphs with same DD

The minimum non-isomorphic cyclic graphs with same distance distribution are the following graphs with 4 vertices (see Figure 3).

Note that, for the above graphs with same distance distribution, their Wiener matrix sequences and hyper-Wiener matrices are different.

The following theorem gives a class of graphs with same distance distribution.

Let ${\mathcal{G}}_{n,m}$ be the set of all the graphs with $n$ vertices and $m$ edges.

Theorem 3.1. Let $G,{G}^{*}\in {\mathcal{G}}_{n,m}$ , and $diam\left(G\right)=diam\left({G}^{*}\right)=2$ . Then $DD\left(G\right)=DD\left({G}^{*}\right)$ .

Proof. Since $G,{G}^{*}\in {\mathcal{G}}_{n,m}$ and $diam\left(G\right)=diam\left({G}^{*}\right)=2$ , we have

Figure 2. $W\left({T}_{3}\right)=W\left({T}_{3}^{*}\right)=82$ , $R\left({T}_{3}\right)=R\left({T}_{3}^{*}\right)=149$ , $DD\left({T}_{3}\right)=DD\left({T}_{3}^{*}\right)=\left(8,13,12,3\right)$ . $W\left({T}_{4}\right)=W\left({T}_{4}^{*}\right)=92$ , $R\left({T}_{4}\right)=R\left({T}_{4}^{*}\right)=188$ , $DD\left({T}_{4}\right)=DD\left({T}_{4}^{*}\right)=\left(8,10,10,6,2\right)$ .

Figure 3. $W\left({G}_{1}\right)=W\left({G}_{1}^{*}\right)=8$ , $R\left({G}_{1}\right)=R\left({G}_{1}^{*}\right)=10$ , $DD\left({G}_{1}\right)=DD\left({G}_{1}^{*}\right)=\left(4,2\right)$ .

$d\left(G,1\right)=d\left({G}^{*},1\right)=m$ , $d\left(G,2\right)=d\left({G}^{*},2\right)=\left(\begin{array}{c}n\\ 2\end{array}\right)-m$ , $d\left(G,k\right)=d\left({G}^{*},k\right)=0$

for $k\ge 3$ , and so $DD\left(G\right)=DD\left({G}^{*}\right)$ .

Corollary 3.2. If $\left(\begin{array}{c}n\\ 2\end{array}\right)>m>\left(\begin{array}{c}n\\ 2\end{array}\right)-n+1$ , then all graphs in ${\mathcal{G}}_{n,m}$ have same

distance distribution.

Proof. For $\forall G\in {\mathcal{G}}_{n,m}$ with $\left(\begin{array}{c}n\\ 2\end{array}\right)>m>\left(\begin{array}{c}n\\ 2\end{array}\right)-n+1$ , clearly $diam\left(G\right)\ge 2$ .

We assert that $diam\left(G\right)=2$ .

Otherwise, there exist two vertices $u,v\in V\left(G\right)$ such that $d\left(u,v\right)\ge 3$ . Let $P$ be a shortest $\left(u,v\right)$ -path. Then any vertex not on $P$ is not adjacent to at least one of $u$ and $v$ , and the number of pairs of non-adjacent vertices on $P$ is equal to $\left(|V\left(P\right)|-2\right)+\left(|V\left(P\right)|-3\right)+\cdots +1=\left(|V\left(P\right)|-2\right)\left(|V\left(P\right)|-1\right)/2$ . So

$\begin{array}{c}m\le \left(\begin{array}{c}n\\ 2\end{array}\right)-\left(n-|V\left(P\right)|\right)-\left(|V\left(P\right)|-2\right)\left(|V\left(P\right)|-1\right)/2\\ =\left(\begin{array}{c}n\\ 2\end{array}\right)-n-\left[\left(|V\left(P\right)|-2\right)\left(|V\left(P\right)|-3\right)-4\right]/2\le \left(\begin{array}{c}n\\ 2\end{array}\right)-n+1\end{array}$ , contradicting that $m>\left(\begin{array}{c}n\\ 2\end{array}\right)-n+1$ .

Hence, by Theorem 3.1, if $m>\left(\begin{array}{c}n\\ 2\end{array}\right)-n+1$ , all graphs in ${\mathcal{G}}_{n,m}$ have same

distance distribution. □

Let $G\text{\hspace{0.17em}}V\text{\hspace{0.17em}}H$ denote the graph obtained from vertex-disjoint graphs $G$ and $H$ by connecting every vertex of $G$ to every vertex of $H$ .

Corollary 3.3. Let ${G}_{1}^{1},{G}_{2}^{1}\in {\mathcal{G}}_{{n}_{1},{m}_{1}}$ and ${G}_{1}^{2},{G}_{2}^{2}\in {\mathcal{G}}_{{n}_{2},{m}_{2}}$ . Then ${G}_{1}^{1}\text{\hspace{0.17em}}V\text{\hspace{0.17em}}{G}_{1}^{2}$ and ${G}_{2}^{1}\text{\hspace{0.17em}}V\text{\hspace{0.17em}}{G}_{2}^{2}$ have same distance distribution.

Proof. Obviously, $|V\left({G}_{1}^{1}\text{\hspace{0.17em}}V\text{\hspace{0.17em}}{G}_{1}^{2}\right)|=|V\left({G}_{2}^{1}\text{\hspace{0.17em}}V\text{\hspace{0.17em}}{G}_{2}^{2}\right)|={n}_{1}+{n}_{2}$ , $diam\left({G}_{1}^{1}\text{\hspace{0.17em}}V\text{\hspace{0.17em}}{G}_{1}^{2}\right)=diam\left({G}_{2}^{1}\text{\hspace{0.17em}}V\text{\hspace{0.17em}}{G}_{2}^{2}\right)=2$ , and

$|E\left({G}_{1}^{1}\text{\hspace{0.17em}}V\text{\hspace{0.17em}}{G}_{1}^{2}\right)|=|E\left({G}_{2}^{1}\text{\hspace{0.17em}}V\text{\hspace{0.17em}}{G}_{2}^{2}\right)|={m}_{1}+{m}_{2}+{n}_{1}\cdot {n}_{2}$ . By Theorem 3.1,

$DD\left({G}_{1}^{1}\text{\hspace{0.17em}}V\text{\hspace{0.17em}}{G}_{1}^{2}\right)=DD\left({G}_{2}^{1}\text{\hspace{0.17em}}V\text{\hspace{0.17em}}{G}_{2}^{2}\right)$ .

For graphs with diameter greater than or equal to 2, we will give some construction methods for finding graphs with same distance distribution.

Let $G$ be a connected graph with vertices set $\left\{{v}_{1},{v}_{2},\cdots ,{v}_{n}\right\}$ , and let $D\left(G\right)=\left({d}_{ij}\right)$ be the distant matrix of the graph G. Let ${d}_{k}^{G}\left({v}_{i}\right)$ denote the number of the vertices at distance $k$ from a vertex ${v}_{i}$ in $G$ , and let $D{D}_{G}\left({v}_{i}\right)=\left({d}_{1}^{G}\left({v}_{i}\right),{d}_{2}^{G}\left({v}_{i}\right),\cdots ,{d}_{diam\left(G\right)}^{G}\left({v}_{i}\right)\right)$ ) be the distance distribution of ${v}_{i}$ in $G$ .

Theorem 3.4. Let ${G}_{1}$ and ${G}_{2}$ (resp. ${{G}^{\prime }}_{1}$ and ${{G}^{\prime }}_{2}$ ) be the connected graphs with ${n}_{1}$ (resp. ${n}_{2}$ ) vertices and with same distance distribution. For ${v}_{1}\in V\left({G}_{1}\right)$ , ${v}_{2}\in V\left({G}_{2}\right)$ , ${{v}^{\prime }}_{1}\in V\left({{G}^{\prime }}_{1}\right)$ , and ${{v}^{\prime }}_{2}\in V\left({{G}^{\prime }}_{2}\right)$ , let $G$ (resp. ${G}^{*}$ ) be the graph ob- tained from ${G}_{1}$ and ${{G}^{\prime }}_{1}$ (resp. ${G}_{2}$ and ${{G}^{\prime }}_{2}$ ) by identifying ${v}_{1}$ and ${{v}^{\prime }}_{1}$ (resp. ${v}_{2}$ and ${{v}^{\prime }}_{2}$ ). If $D{D}_{{G}_{1}}\left({v}_{1}\right)=D{D}_{{G}_{2}}\left({v}_{2}\right)$ and $D{D}_{{{G}^{\prime }}_{1}}\left({{v}^{\prime }}_{1}\right)=D{D}_{{{G}^{\prime }}_{2}}\left({{v}^{\prime }}_{2}\right)$ , then $G$ and ${G}^{*}$ have same distance distribution.

Proof. It is enough to prove $d\left(G,k\right)=d\left({G}^{*},k\right)$ for $k=1,2,\cdots$ .

Clearly, $d\left(G,k\right)=d\left({G}_{1},k\right)+d\left({{G}^{\prime }}_{1},k\right)+{\sum }_{1\le i,j\le k,i+j=k}{d}_{i}^{{G}_{1}}\left({v}_{1}\right){d}_{j}^{{{G}^{\prime }}_{1}}\left({{v}^{\prime }}_{1}\right)$ . Similarly,

$d\left({G}^{*},k\right)=d\left({G}_{2},k\right)+d\left({{G}^{\prime }}_{2},k\right)+{\sum }_{1\le i,j\le k,i+j=k}{d}_{i}^{{G}_{2}}\left({v}_{2}\right){d}_{j}^{{{G}^{\prime }}_{2}}\left({{v}^{\prime }}_{2}\right)$ . Because

$DD\left({G}_{1}\right)=DD\left({G}_{2}\right)$ , $DD\left({{G}^{\prime }}_{1}\right)=DD\left({{G}^{\prime }}_{2}\right)$ , $D{D}_{{G}_{1}}\left({v}_{1}\right)=D{D}_{{G}_{2}}\left({v}_{2}\right)$ , $D{D}_{{{G}^{\prime }}_{1}}\left({{v}^{\prime }}_{1}\right)=D{D}_{{{G}^{\prime }}_{2}}\left({{v}^{\prime }}_{2}\right)$ , we have $d\left(G,k\right)=d\left({G}^{*},k\right)$ for $k=1,2,\cdots$ . Hence $DD\left(G\right)=DD\left({G}^{*}\right)$ . □

Theorem 3.5. Let ${G}_{i}\in {\mathcal{G}}_{n,m}$ , $i=1,2$ , and let ${S}_{i}\subset V\left({G}_{i}\right)$ such that any two vertices in ${S}_{i}$ have distance less than or equal to 2 in ${G}_{i}$ , and $|{S}_{1}|=|{S}_{2}|$ . Let ${G}_{i}\left\{{S}_{i}\right\}$ denote the graph obtained from ${G}_{i}$ by contracting vertices in ${S}_{i}$ to a vertex ${s}_{i}$ . Let ${G}_{i}^{*}$ be the graph obtained from ${G}_{i}$ by adding a new vertex ${x}_{i}$ and connecting ${x}_{i}$ to every vertex in ${S}_{i}$ . If $DD\left({G}_{1}\right)=DD\left({G}_{2}\right)$ and $D{D}_{{G}_{1}\left\{{S}_{1}\right\}}\left({s}_{1}\right)=D{D}_{{G}_{2}\left\{{S}_{2}\right\}}\left({s}_{2}\right)$ , then $DD\left({G}_{1}^{*}\right)=DD\left({G}_{2}^{*}\right)$ .

Proof. Clearly, by the conditions of the theorem, $DD\left({G}_{i}^{*}\right)\text{ }\text{ }=\text{ }\text{ }DD\left({G}_{i}\right)+D{D}_{{G}_{i}^{*}}\left({x}_{i}\right)\text{ }\text{ }$ $=\text{ }\text{ }DD\left({G}_{i}\right)+\left(|{S}_{i}|,1+{d}_{1}^{{G}_{i}\left\{{S}_{i}\right\}}\left({x}_{i}\right),1+{d}_{2}^{{G}_{i}\left\{{S}_{i}\right\}}\left({x}_{i}\right),\cdots \right)$ , $i=1,2$ . So, if $DD\left({G}_{1}\right)=DD\left({G}_{2}\right)$ and $DD\left({{G}^{\prime }}_{1}\right)=DD\left({{G}^{\prime }}_{2}\right)$ and

$D{D}_{{G}_{1}\left\{{S}_{1}\right\}}\left({s}_{1}\right)=D{D}_{{G}_{2}\left\{{S}_{2}\right\}}\left({s}_{2}\right)$ , then $D{D}_{{G}_{1}^{*}}=D{D}_{{G}_{2}^{*}}$ . □

From Theorem 3.4, we have the following corollary:

Corollary 3.6. Let ${G}_{1},{G}_{2}\in {\mathcal{G}}_{n,m}$ and $DD\left({G}_{1}\right)=DD\left({G}_{2}\right)$ . Let $H$ be a con- nected graph vertex-disjoint with ${G}_{1}$ and ${G}_{2}$ . For ${v}_{1}\in V\left({G}_{1}\right)$ , ${v}_{2}\in V\left({G}_{2}\right)$ , and $u\in V\left(H\right)$ , let $G$ (resp. ${G}^{*}$ ) be the graph obtained from ${G}_{1}$ (resp. ${G}_{2}$ ) and $H$ by identifying ${v}_{1}$ and $u$ (resp. ${v}_{2}$ and $u$ ). If $D{D}_{{G}_{1}}\left({v}_{1}\right)=D{D}_{{G}_{2}}\left({v}_{2}\right)$ , then $G$ and ${G}^{*}$ have same distance distribution.

From Theorem 3.5, one can obtain graphs with same distance distribution in ${\mathcal{G}}_{n,m}$ from graphs in ${\mathcal{G}}_{n-1,m-s}$ with same distance distribution by adding a new vertex and some edges.

Figure 4 shows two pairs of graphs with 5 vertices and 5 edges and with same $DD$ , one of which has diameter 2 and the other has diameter 3.

Figure 5 shows three pairs of graphs with 6 vertices and 6 edges and with

Figure 4. $W\left({G}_{2}\right)=W\left({G}_{2}^{*}\right)=15$ , $R\left({G}_{2}\right)=R\left({G}_{2}^{*}\right)=20$ , $DD\left({G}_{2}\right)=DD\left({G}_{2}^{*}\right)=\left(5,5\right)$ . $W\left({G}_{3}\right)=W\left({G}_{3}^{*}\right)=16$ , $R\left({G}_{3}\right)=R\left({G}_{3}^{*}\right)=23$ , $DD\left({G}_{3}\right)=DD\left({G}_{3}^{*}\right)=\left(5,4,1\right)$ .

Figure 5. $W\left({G}_{4}\right)=W\left({G}_{4}^{*}\right)=26$ , $R\left({G}_{4}\right)=R\left({G}_{4}^{*}\right)=39$ , $DD\left({G}_{4}\right)=DD\left({G}_{4}^{*}\right)=\left(6,7,2\right)$ . $W\left({G}_{5}\right)=W\left({G}_{5}^{*}\right)=27$ , $R\left({G}_{5}\right)=R\left({G}_{5}^{*}\right)=42$ , $DD\left({G}_{5}\right)=DD\left({G}_{5}^{*}\right)=\left(6,6,3\right)$ . $W\left({G}_{6}\right)=W\left({G}_{6}^{*}\right)=29$ , $R\left({G}_{6}\right)=R\left({G}_{6}^{*}\right)=49$ , $DD\left({G}_{6}\right)=DD\left({G}_{6}^{*}\right)=\left(6,5,3,1\right)$ .

same $DD$ , two of which have diameter 3 and the other has diameter 4.

It is easy to see that the graphs in Figure 5 can be obtained from graphs in Figure 3, Figure 4 by the construction methods given in Theorems 3.4, 3.5.

However, the construction methods are not complete. There might be some graphs with same $DD$ which could not be obtained by the above construction methods.

Open Problem. Is there a construction method for finding all graphs with same distance distribution?

Acknowledgements

This work is jointly supported by the Natural Science Foundation of China (11101187, 61573005, 11361010), the Scientific Research Fund of Fujian Provincial Education Department of China (JAT160691).

Cite this paper

Qiu, X.L. and Guo, X.F. (2017) On Graphs with Same Distance Distribution. Applied Mathematics, 8, 799- 807. https://doi.org/10.4236/am.2017.86062

References

1. 1. Wiener, H. (1947) Structural Determination of Paraffin Boiling Points. Journal of the American Chemical Society, 69, 17-20. https://doi.org/10.1021/ja01193a005

2. 2. Randic, M. (1993) Novel Molecular Descriptor for Structure-Property Studies. Chemical Physics Letters, 211, 478-483. https://doi.org/10.1016/0009-2614(93)87094-J

3. 3. Randic, M., Guo, X.F., Oxley, T. and Krishnapriyan, H. (1993) Wiener Matrix: Source of Novel Graph Invariants. Journal of Chemical Information and Computer Sciences, 33, 709-716. https://doi.org/10.1021/ci00015a008

4. 4. Randic, M., Guo, X.F., Oxley, T., Krishnapriyan, h. and Naylor, L. (1994) Wiener Matrix Invariants. Journal of Chemical Information and Computer Sciences, 34, 361-367. https://doi.org/10.1021/ci00018a022

5. 5. Klein, D.J. and Gutman, I. (1995) On the Definition of the Hyper-Wiener Index for Cycle-Containing Structures. Journal of Chemical Information and Computer Sciences, 35, 50-52. https://doi.org/10.1021/ci00023a007

6. 6. Lukovits, I. and Linert, W. (1995) A Novel Definition of the Hyper-Wiener Index for Cycles. Journal of Chemical Information and Computer Sciences, 34, 899-902. https://doi.org/10.1021/ci00020a025

7. 7. Klein, D.J. and Randic, M. (1993) Resistance Distance. Journal of Mathematical Chemistry, 12, 81-95. https://doi.org/10.1007/BF01164627

8. 8. Li, X.H. (2003) The Extended Hyper-Wiener Index. Canadian Journal of Chemistry, 81, 992-996. https://doi.org/10.1139/v03-106

9. 9. Klavzar, S., Gutman, I. and Mohar, B. (1995) Labeling of Benzenoid Systems which Reflects the Vertex-Distance Relations. Journal of Chemical Information and Computer Sciences, 35, 590-593. https://doi.org/10.1021/ci00025a030

10. 10. Cash, G.G., Klavzar, S. and Petkovsek, M. (2002) Three Methods for Calculation of the Hyper-Wiener Index of Molecular Graphs. Journal of Chemical Information and Computer Sciences, 42, 571-576. https://doi.org/10.1021/ci0100999

11. 11. Gutman, I. (2002) Relation between Hyper-Wiener and Wiener Index. Chemical Physics Letters, 364, 352-356. https://doi.org/10.1016/S0009-2614(02)01343-X

12. 12. Hosoya, H. (1998) On Some Counting Polynominals in Chemistry. Discrete Applied Mathematics, 19, 239-257.

13. 13. Cash, G.G. (2002) Relationship between the Hosoya Polynominal and the Hyper-Wiener Index. Applied Mathematics Letters, 15, 893-895.

14. 14. Buckley, F. and Superville, L. (1981) Distance Distributions and Mean Distance Problem. Proceedings of Third Caribbean Conference on Combinatorics and Computing, University of the West Indies, Barbados, January 1981, 67-76.

15. 15. Guo, X.F., klein, D.J., Yan, W.G. and Yeh, Y.-N. (2006) Hyper-Wiener Vector, Wiener Matrix Sequence, and Wiener Polynominal Sequence of a Graph. International Journal of Quantum Chemistry, 106, 1756-1761. https://doi.org/10.1002/qua.20958