Scientific Research

An Academic Publisher

**Graphs with k-Role Assignments** ()

*G*, a

*k*-role assignment of

*G*is a surjective function such that , where

*N(x*

*)*and

*N(y*

*)*are the neighborhoods of

*x*and

*y*, respectively. Furthermore, as we limit the number of different roles in the neighborhood of an individual, we call

*r*a restricted size

*k*-role assignment. When the hausdorff distance between the sets of roles assigned to their neighbors is at most 1, we call

*r*a

*k*-threshold close role assignment. In this paper we study the graphs that have

*k*-role assignments, restricted size

*k*-role assignments and

*k*-threshold close role assignments, respectively. By the end we discuss the maximal and minimal graphs which have

*k*-role assignments.

Keywords

Share and Cite:

*k*-Role Assignments.

*Open Journal of Discrete Mathematics*,

**7**, 177-184. doi: 10.4236/ojdm.2017.73016.

1. Introduction and Preliminary

Role assignments, introduced by Everett and Borgatti [1] , who called them role colorings, formalize the idea, arising in the theory of social networks, that individuals of the same social role will relate in the same way to individuals playing counterpart roles.

Let G be a graph with vertices representing individuals and edges representing relationships. For any vertex $v\in V\left(G\right)$ , the neighborhood ${N}_{G}\left(v\right)=N\left(v\right)$ of vertex v is the set of all vertices adjacent to v in G. Let $r\mathrm{:}V\left(G\right)\to Z$ , where Z is the set of positive integers. For $S\subseteq V\left(G\right)$ , denote $r\left(S\right)=\left\{r\left(x\right):x\in S\right\}$ and $G\left[S\right]$ be the subgraph of G induced by set S. For any $i\in Z$ , ${r}^{-1}\left(i\right)=\left\{v\in V\left(G\right)\mathrm{:}r\left(v\right)=i\right\}$ . The function r is a role assignment if

$r\left(x\right)=r\left(y\right)\Rightarrow r\left(N\left(x\right)\right)=r\left(N\left(y\right)\right).$ (1)

*Corresponding author.

In other words, in a role assignment, if two individuals have the same role, they are related to individuals with the same sets of roles. A k-role assignment for graph G is a role assignment r so that $r\left(V\left(G\right)\right)=\left\{\mathrm{1,2,}\cdots \mathrm{,}k\right\}$ . We say that G is k-role assignable if it has a k-role assignment.

Pekeč and Roberts [2] proposed a modification of the role assignment model, which would limit the number of different roles in the neighborhood of an individual. This limit could be different for different individuals or could be uniform for the network. For a group of nonnegative integers ${s}_{1}\mathrm{,}{s}_{2},\cdots \mathrm{,}{s}_{k}$ , we define a restricted size k-role assignment r of a graph G to be a k-role assignment in which $\left|r\left(N\left(v\right)\right)\right|\le {s}_{i}$ must hold for all $v\in {r}^{-1}\left(i\right)$ . When ${s}_{1}={s}_{2}=\cdots ={s}_{k}=s$ , we call the restricted size k-role assignment a restricted s-size k-role assignment, i.e., a k-role assignment in which $\left|r\left(N\left(v\right)\right)\right|\le s$ must hold for all $v\in V\left(G\right)$ .

If S and T are two sets of real numbers, let the distance $d\left(S\mathrm{,}T\right)$ be defined by $d\left(S\mathrm{,}T\right)=min\left\{\left|s-t\right|\mathrm{:}s\in S\mathrm{,}t\in T\right\}$ , with $d\left(S\mathrm{,}\varnothing \right)=\infty $ if $S\ne \varnothing $ and 0 other- wise. For a given graph G, we say the function r from $V\left(G\right)$ into the set of positive integers is a threshold role assignment (Roberts [3] ) if

$r\left(x\right)\mathrm{=}r\left(y\right)\Rightarrow d\left(r\left(N\left(x\right)\right)\mathrm{,}r\left(N\left(y\right)\right)\right)\le 1.$ (2)

If $r\left(V\left(G\right)\right)=\left\{\mathrm{1,2,}\cdots \mathrm{,}k\right\}$ , we say r is a k-threshold role assignment.

Roberts [3] also introduced an alternative definition of distance, the Hausdorff distance ${d}_{h}$ , ${d}_{h}\left(S\mathrm{,}T\right)=max\left\{ma{x}_{x\in S}d\left(x\mathrm{,}T\right)\mathrm{,}ma{x}_{x\in T}d\left(x\mathrm{,}S\right)\right\}$ , By convention ${d}_{h}\left(S\mathrm{,}\varnothing \right)=\infty $ if $S\ne \varnothing $ and 0 otherwise. For a given graph G, we say the function r from $V\left(G\right)$ into the set of positive integers is a threshold close role assignment (Roberts [3] ) if

$r\left(x\right)\mathrm{=}r\left(y\right)\Rightarrow {d}_{h}\left(r\left(N\left(x\right)\right)\mathrm{,}r\left(N\left(y\right)\right)\right)\le 1.$ (3)

If $r\left(V\left(G\right)\right)=\left\{\mathrm{1,2,}\cdots \mathrm{,}k\right\}$ , we say r is a k-threshold close role assignment. If such an assignment exists, we say G is k-threshold close role assignable.

A graph with $n\ge 3$ vertices is role primitive if it has no k-role assignment for $2\le k\le n-1$ . Roberts and Sheng [4] studied it for a special class graphs called indifference graphs.

A good survey about role assignment is [5] . Recently, many new papers related to role assignment appeared, see [6] [7] [8] . All the graphs in the paper are simple graphs. In Section 2 we give a characterization of graphs that are k-role assignable. In Section 3 we study the restricted k-role assignable graphs and characterize the graphs that are restricted size k-role assignable or restricted s-size k-role assignable. In Section 4 we discuss the graphs that are k-threshold close role assignable. In Section 5 we discuss the maximal and minimal k-role assignable graphs.

2. k-Role Assignable Graphs

The assignment $r\left(x\right)\equiv 1$ for any vertex $x\in V\left(G\right)$ is a role assignment if and only if the graph has no isolated vertices or all isolated vertices, so this describes the graphs which are 1-role assignable. The assignment where $r\left(x\right)$ is different for each vertex $x\in V\left(G\right)$ is always a role assignment, so every graph of n vertices is n-role assignable. The other cases are not straightforward.

The 2-role assignable graphs are the first interesting class of graphs. Roberts and Sheng [9] showed that the problem of determining if G has a 2-role assign- ment is NP-complete. Sheng [10] characterized 2-role assignable indifference graphs and extended some results about indifference graphs to the broader class of triangulated graphs. For the general case, we have the following results.

Theorem 1 Let G be a graph and S a proper subset of $V\left(G\right)$ . If S satisfies the following properties:

• $\left|S\right|=k-1$ ,

• $G-S$ has no isolated vertices or all isolated vertices, and

• for any $v\in S$ , $N\left(v\right)\cap \left(V\left(G\right)\backslash S\right)=\varnothing $ or $V\left(G\right)\backslash S$ .

Then G is k-role assignable.

Proof. We give an assignment r for G by assigning each role of $\left\{\mathrm{1,2,}\cdots \mathrm{,}k-1\right\}$ to one vertex of S and k to all vertices of $G-S$ . The following is to verify that r is a k-role assignment of G. In fact, we just need to check the vertices with role k. By property (3), we may assume that $S={S}_{1}\cup {S}_{2}$ and ${S}_{1}\cap {S}_{2}=\varnothing $ , where ${S}_{1}=\left\{v\in S:N\left(v\right)\cap \left(V\left(G\right)\backslash S\right)=V\left(G\right)\backslash S\right\}$ and ${S}_{2}=\left\{v\in S:N\left(v\right)\cap \left(V\left(G\right)\backslash S\right)=\varnothing \right\}$ . For any vertex $v\in V\left(G\right)\backslash S$ , since $N\left(v\right)={S}_{1}\cup {N}_{G-S}\left(v\right)$ , then

$r\left(N\left(v\right)\right)=\{\begin{array}{ll}r\left({S}_{1}\right)\cup \left\{k\right\},\hfill & \text{\hspace{0.05em}}\text{if}\text{\hspace{0.17em}}G-S\text{\hspace{0.17em}}\text{has}\text{\hspace{0.17em}}\text{no}\text{\hspace{0.17em}}\text{isolated}\text{\hspace{0.17em}}\text{vertices}\text{\hspace{0.05em}},\hfill \\ r\left({S}_{1}\right),\hfill & \text{\hspace{0.05em}}\text{if}\text{\hspace{0.17em}}\text{all}\text{\hspace{0.17em}}\text{vertices}\text{\hspace{0.17em}}\text{of}\text{\hspace{0.17em}}G-S\text{\hspace{0.17em}}\text{are}\text{\hspace{0.17em}}\text{isolated}\text{\hspace{0.17em}}\text{vertices}.\text{\hspace{0.05em}}\hfill \end{array}$

So r is a k-role assignment of G in each case. The proof is complete.

Theorem 2 A graph G with at least k vertices has a k-role assignment if and only if $V\left(G\right)$ can be partitioned into k nonempty sets ${V}_{1}\mathrm{,}{V}_{2}\mathrm{,}\cdots \mathrm{,}{V}_{k}$ , and the following two properties are satisfied.

• $G\left[{V}_{i}\right]$ has no isolated vertices or all isolated vertices, where $i=1,2,\cdots ,k$ , and

• for each $i\in \left\{\mathrm{1,2,}\cdots \mathrm{,}k\right\}$ , there exist ${k}_{i}$ sets ${V}_{{i}_{1}}\mathrm{,}{V}_{{i}_{2}}\mathrm{,}\cdots \mathrm{,}{V}_{{i}_{{k}_{i}}}\in \left\{{V}_{1}\mathrm{,}{V}_{2}\mathrm{,}\cdots \mathrm{,}{V}_{k}\right\}$ , where $0\le {k}_{i}\le k$ , such that for any $x\in {V}_{i}$ , $N\left(x\right)\cap {V}_{{i}_{j}}\ne \varnothing $ when $j=1,2,\cdots ,{k}_{i}$ , and $N\left(x\right)\cap {V}_{j}=\varnothing $ when $j\ne {i}_{1}\mathrm{,}{i}_{2}\mathrm{,}\cdots \mathrm{,}{i}_{{k}_{i}}$ .

Proof. Let r be a k-role assignment of graph G and ${r}^{-1}\left(i\right)={V}_{i}$ , in which $i=1,2,\cdots ,k$ . Then it is obvious that $V\left(G\right)$ is partitioned into k nonempty sets ${V}_{1}\mathrm{,}{V}_{2}\mathrm{,}\cdots \mathrm{,}{V}_{k}$ . For any $x\in {V}_{i}$ , if $i\in r\left(N\left(x\right)\right)$ , then $G\left[{V}_{i}\right]$ has no isolated vertices; if $i\notin r\left(N\left(x\right)\right)$ , then all vertices of $G\left[{V}_{i}\right]$ are isolated vertices. For any $x\in {V}_{i}$ , let ${k}_{i}=\left|r\left(N\left(x\right)\right)\right|$ , then there exist ${k}_{i}$ sets ${V}_{{i}_{1}}\mathrm{,}{V}_{{i}_{2}}\mathrm{,}\cdots \mathrm{,}{V}_{{i}_{{k}_{i}}}\in \left\{{V}_{1}\mathrm{,}{V}_{2}\mathrm{,}\cdots \mathrm{,}{V}_{k}\right\}$ , where $0\le {k}_{i}\le k$ , such that for any $x\in {V}_{i}$ , $N\left(x\right)\cap {V}_{{i}_{j}}\ne \varnothing $ when $j=1,2,\cdots ,{k}_{i}$ , and $N\left(x\right)\cap {V}_{j}=\varnothing $ when $j\ne {i}_{1}\mathrm{,}{i}_{2}\mathrm{,}\cdots \mathrm{,}{i}_{{k}_{i}}$ .

On the converse case we suppose $V\left(G\right)$ can be partitioned into k nonempty sets ${V}_{1}\mathrm{,}{V}_{2}\mathrm{,}\cdots \mathrm{,}{V}_{k}$ , and G satisfies the two properties mentioned in the theorem. Let $r\left({V}_{i}\right)=i$ for $i=1,2,\cdots ,k$ . Then it is easy to check that r is a k-role assign- ment of graph G.

Roberts and Sheng [9] did some work on 2-role assignable graphs. For $k=2$ , Sheng [10] have studied the indifference graphs and triangulated graphs. For $k=n-1$ , we also have the following result.

Theorem 3 A graph G with n vertices has a $\left(n-1\right)$ -role assignment if and only if there exist $x\mathrm{,}y\in V\left(G\right)$ such that $N\left(x\right)\backslash \left\{y\right\}=N\left(y\right)\backslash \left\{x\right\}$ .

Proof. Let r be a $\left(n-1\right)$ -role assignment of G. Since $\left|V\left(G\right)\right|=n$ , there must be two vertices x and y with the same role, i.e., $r\left(x\right)=r\left(y\right)=k$ , where $1\le k\le n-1$ , and each of the other vertices have unique roles. Because $r\left(N\left(x\right)\right)=r\left(N\left(y\right)\right)$ , if x is not adjacent to y, then $N\left(x\right)=N\left(y\right)$ , and $N\left(x\right)\backslash \left\{y\right\}=N\left(y\right)\backslash \left\{x\right\}$ is obvious; if x is adjacent to y, then $N\left(x\right)\backslash \left\{y\right\}=N\left(y\right)\backslash \left\{x\right\}$ .

If there are two vertices x and y satisfying $N\left(x\right)\backslash \left\{y\right\}=N\left(y\right)\backslash \left\{x\right\}$ , then let $r\left(x\right)=r\left(y\right)=1$ , and the r values of the other $n-2$ vertices are $\mathrm{2,3,}\cdots \mathrm{,}n-1$ respectively. It is easy to see that r is a $\left(n-1\right)$ -role assignment of graph G.

3. Restricted k-Role Assignable Graphs

In this section we study the restricted size k-role assignment and the restricted s-size k-role assignment of a graph G. It is easy to see that any k-role assignment of graph G is a restricted k-size k-role assignment. So we may assume in the following that $0\le s\le k$ and $0\le {s}_{i}\le k$ , in which $i=1,2,\cdots ,k$ .

Pekeč and Roberts [2] just discussed the restricted s-size k-role assignment for the special case when $s=1$ , i.e., when everyone in the neighborhood of an individual should be assigned the same role. They showed that G has a restricted 1-size k-role assignment if and only if $k\le c\left(G\right)+b\left(G\right)$ , where $c\left(G\right)$ is the number of connected components of G and $b\left(G\right)$ is the number of connected components of G that are bipartite but not isolated vertices. In particular, a connected graph G on at least two vertices has a restricted 1-size 2-role assignment if and only if G is bipartite. For the restricted size k-role assignment, we have the following result.

Theorem 4 For k nonnegative integers ${s}_{1}\mathrm{,}{s}_{2}\mathrm{,}\cdots \mathrm{,}{s}_{k}$ , a graph G with at least k vertices has a restricted size k-role assignment if and only if $V\left(G\right)$ can be partitioned into k nonempty sets ${V}_{1}\mathrm{,}{V}_{2}\mathrm{,}\cdots \mathrm{,}{V}_{k}$ , and the following two properties are satisfied.

• $G\left[{V}_{i}\right]$ has no isolated vertices or all isolated vertices, where $i=1,2,\cdots ,k$ , and

• for each $i\in \left\{\mathrm{1,2,}\cdots \mathrm{,}k\right\}$ , there exist ${t}_{i}$ sets ${V}_{{i}_{1}}\mathrm{,}{V}_{{i}_{2}}\mathrm{,}\cdots \mathrm{,}{V}_{{i}_{{t}_{i}}}\in \left\{{V}_{1}\mathrm{,}{V}_{2}\mathrm{,}\cdots \mathrm{,}{V}_{k}\right\}$ , where $0\le {k}_{i}\le {s}_{i}$ , such that for any $x\in {V}_{i}$ , $N\left(x\right)\cap {V}_{{i}_{j}}\ne \varnothing $ when $j=1,2,\cdots ,{t}_{i}$ , and $N\left(x\right)\cap {V}_{j}=\varnothing $ when $j\ne {i}_{1}\mathrm{,}{i}_{2}\mathrm{,}\cdots \mathrm{,}{i}_{{t}_{i}}$ .

Proof. For k nonnegative integers ${s}_{1}\mathrm{,}{s}_{2}\mathrm{,}\cdots \mathrm{,}{s}_{k}$ , let r be a restricted size k-role assignment of graph G and ${r}^{-1}\left(i\right)={V}_{i}$ . Then we have $\left|r\left(N\left(v\right)\right)\right|\le {s}_{i}$ for all $v\in {V}_{i}$ , in which $i=1,2,\cdots ,k$ . The following is similar to the proof of Theorem 2.

When ${s}_{1}={s}_{2}=\cdots ={s}_{k}=s$ , we have the following corollary for the restricted s-size k-role assignment.

Corollary 1 A graph G with at least k vertices has a restricted s-size k-role assignment if and only if $V\left(G\right)$ can be partitioned into k nonempty sets ${V}_{1}\mathrm{,}{V}_{2}\mathrm{,}\cdots \mathrm{,}{V}_{k}$ , and the following two properties are satisfied.

• $G\left[{V}_{i}\right]$ has no isolated vertices or all isolated vertices, where $i=1,2,\cdots ,k$ , and

• for each $i\in \left\{\mathrm{1,2,}\cdots \mathrm{,}k\right\}$ , there exist ${t}_{i}$ sets ${V}_{{i}_{1}}\mathrm{,}{V}_{{i}_{2}}\mathrm{,}\cdots \mathrm{,}{V}_{{i}_{{t}_{i}}}\in \left\{{V}_{1}\mathrm{,}{V}_{2}\mathrm{,}\cdots \mathrm{,}{V}_{k}\right\}$ , where $0\le {t}_{i}\le s$ , such that for any $x\in {V}_{i}$ , $N\left(x\right)\cap {V}_{{i}_{j}}\ne \varnothing $ when $j=1,2,\cdots ,{t}_{i}$ , and $N\left(x\right)\cap {V}_{j}=\varnothing $ when $j\ne {i}_{1}\mathrm{,}{i}_{2}\mathrm{,}\cdots \mathrm{,}{i}_{{t}_{i}}$ .

4. k-Threshold Close Role Assignable Graphs

Roberts [3] showed that every graph G has a k-threshold role assignment for every $2\le k\le \left|V\left(G\right)\right|$ . Roberts [3] [11] showed that every graph with k or more vertices is k-threshold close role assignable for the cases $k=2,3,4$ and 5.

Let $\left[\mathrm{1,}d+1\right]$ denote the set of all positive integers less or equal to $d+1$ and the diameter of a graph G be defined as

$\text{diam}\text{\hspace{0.17em}}G=max\left\{d\left(x\mathrm{,}y\right)\mathrm{:}x\mathrm{,}y\in V\left(G\right)\right\}\mathrm{.}$ (4)

Then we have the following result.

Theorem 5 Given a connected graph G. If $\text{diam}\text{\hspace{0.17em}}G=d$ , then G is k-threshold close role assignable for any $k\in \left[\mathrm{1,}d+1\right]$ .

Proof. Without loss of generality, we may assume that there are two vertices $x\mathrm{,}y\in V\left(G\right)$ such that $\text{diam}\text{\hspace{0.17em}}G=d\left(x\mathrm{,}y\right)=d$ , i.e., x and y are the endpoints of some path of G. We partition $V\left(G\right)$ into $d+1$ nonempty sets ${V}_{1}\mathrm{,}{V}_{2}\mathrm{,}\cdots \mathrm{,}{V}_{d+1}$ by the following way: Let

${V}_{1}=\left\{x\right\}\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{and}\text{\hspace{0.05em}}\text{\hspace{0.17em}}{V}_{i}=\left\{v:d\left(x,v\right)=i-1\right\},\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{where}\text{\hspace{0.17em}}i=2,3,\cdots ,d+1.$ (5)

Then it is easy to see that $y\in {V}_{d+1}$ and the following properties are valid.

• ${\cup}_{i=1}^{d+1}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}{V}_{i}=V\left(G\right)$ ,

• ${V}_{i}\cap {V}_{j}=\varnothing $ , when $i\ne j$ , and

• for any $v\in {V}_{i}\mathrm{,}N\left(v\right)\cap {V}_{i-1}\ne \varnothing $ and $N\left(v\right)\cap {V}_{j}=\varnothing $ , where $j=1,2,\cdots ,i-2,i+2,i+3,\cdots ,d,d+1$ .

Note that $N\left(v\right)\cap {V}_{i+1}$ may be null or not.

Now we construct other $d+1$ nonempty sets ${V}_{1}^{\mathrm{*}}\mathrm{,}{V}_{2}^{\mathrm{*}}\mathrm{,}\cdots \mathrm{,}{V}_{d+1}^{\mathrm{*}}$ from ${V}_{1}\mathrm{,}{V}_{2}\mathrm{,}\cdots \mathrm{,}{V}_{d+1}$ . Let

${V}_{i}^{*}=\left({V}_{i}\backslash {H}_{i}\right)\cup {H}_{i+1}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{and}\text{\hspace{0.17em}}\text{\hspace{0.17em}}{V}_{d+1}^{*}={V}_{d+1},\text{\hspace{0.17em}}i=1,2,\cdots ,d,$ (6)

in which ${H}_{1}=\varnothing $ , ${H}_{d+1}=\varnothing $ and

${H}_{i}=\left\{v:v\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{is}\text{\hspace{0.17em}}\text{an}\text{\hspace{0.17em}}\text{isolated}\text{\hspace{0.17em}}\text{vertex}\text{\hspace{0.17em}}\text{of}\text{\hspace{0.17em}}G\left[{V}_{i}\right]\text{\hspace{0.17em}}\text{and}\text{\hspace{0.17em}}N\left(v\right)\cap {V}_{i+1}=\varnothing \right\}$ , $i=2,3,\cdots ,d$ .

Then ${\cup}_{i=1}^{d+1}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}{V}_{i}^{*}=V\left(G\right)$ , ${V}_{i}^{*}\cap {V}_{j}^{*}=\varnothing $ when $i\ne j$ , and for any vertex $v\in {V}_{i}^{\mathrm{*}}$ ,

the neighborhood $N\left(v\right)$ must be one of the following four cases.

• $N\left(v\right)\cap {V}_{i}^{*}=\varnothing ,\text{\hspace{0.17em}}\text{\hspace{0.17em}}N\left(v\right)\cap {V}_{i+1}^{*}\ne \varnothing ,\text{\hspace{0.17em}}\text{\hspace{0.17em}}N\left(v\right)\cap {V}_{i-1}^{*}\ne \varnothing $ ,

• $N\left(v\right)\cap {V}_{i}^{*}\ne \varnothing ,\text{\hspace{0.17em}}\text{\hspace{0.17em}}N\left(v\right)\cap {V}_{i-1}^{*}=\varnothing ,\text{\hspace{0.17em}}\text{\hspace{0.17em}}N\left(v\right)\cap {V}_{i+1}^{*}=\varnothing $ ,

• $N\left(v\right)\cap {V}_{i}^{*}\ne \varnothing ,\text{\hspace{0.17em}}\text{\hspace{0.17em}}N\left(v\right)\cap {V}_{i-1}^{*}\ne \varnothing ,\text{\hspace{0.17em}}\text{\hspace{0.17em}}N\left(v\right)\cap {V}_{i+1}^{*}=\varnothing $ ,

• $N\left(v\right)\cap {V}_{i}^{*}\ne \varnothing ,\text{\hspace{0.17em}}\text{\hspace{0.17em}}N\left(v\right)\cap {V}_{i-1}^{*}\ne \varnothing ,\text{\hspace{0.17em}}\text{\hspace{0.17em}}N\left(v\right)\cap {V}_{i+1}^{*}\ne \varnothing $ .

Then, for any $k\in \left[\mathrm{1,}d+1\right]$ , let $r\left({V}_{i}^{*}\right)=i$ for $i=1,2,\cdots ,k$ , and $r\left({V}_{j}^{\mathrm{*}}\right)=k$ for $j=k+1,k+2,\cdots ,d+1$ . Then $r\left(N\left(v\right)\right)=\left\{k\right\}$ for any vertex $v\in {\displaystyle {\cup}_{i=k+1}^{d+1}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}{V}_{i}^{*}$ . For any vertex $v\in {V}_{k}^{\mathrm{*}}$ , $r\left(N\left(v\right)\right)$ must be $\left\{k\right\}$ or $\left\{k-\mathrm{1,}k\right\}$ . For any vertex $v\in {V}_{i}^{\mathrm{*}}$ where $i=1,2,\cdots ,k-1$ , since $N\left(v\right)$ is in one of the four cases above, $r\left(N\left(v\right)\right)$ must be one of the following four sets: $\left\{i-\mathrm{1,}i+1\right\}$ , $\left\{i\right\}$ , $\left\{i-\mathrm{1,}i\right\}$ and $\left\{i-\mathrm{1,}i\mathrm{,}i+1\right\}$ . Thus it is easy to see that ${d}_{h}\left(r\left(N\left(u\right)\right)\mathrm{,}r\left(N\left(v\right)\right)\right)\le 1$ for any two vertices u and v with same role, i.e., r is a k-threshold close role assignment of G. The proof is complete.

Corollary 2 Any graph that has no isolated vertices or all isolated vertices is k-threshold close role assignable for any $k\in \left[\mathrm{1,}d+\omega \right]$ , where $d={d}_{1}+{d}_{2}+\cdots +{d}_{\omega}$ , $\omega $ is the number of components of G and ${d}_{i}$ is the diameter of each component of G, $i=1,2,\cdots ,\omega $ .

Proof. When all vertices of G are isolated vertices, the result is obvious. Now we assume that G has no isolated vertices and that ${G}_{1}\mathrm{,}{G}_{2}\mathrm{,}\cdots \mathrm{,}{G}_{\omega}$ are the connected components of G. For each ${G}_{i}$ , we define ${V}_{ij}^{\mathrm{*}}$ as ${V}_{j}^{\mathrm{*}}$ for G in Theorem 5, where $j\in \left\{\mathrm{1,2,}\cdots \mathrm{,}{d}_{i+1}\right\}$ . Furthermore, we order them as follows:

${V}_{11}^{\mathrm{*}}\mathrm{,}{V}_{12}^{\mathrm{*}}\mathrm{,}\cdots \mathrm{,}{V}_{1\left({d}_{1}+1\right)}^{\mathrm{*}}\mathrm{,}{V}_{21}^{\mathrm{*}}\mathrm{,}{V}_{22}^{\mathrm{*}}\mathrm{,}\cdots \mathrm{,}{V}_{2\left({d}_{2}+1\right)}^{\mathrm{*}}\mathrm{,}{V}_{31}^{\mathrm{*}}\mathrm{,}{V}_{32}^{\mathrm{*}}\mathrm{,}\cdots \mathrm{,}{V}_{\omega \left({d}_{\omega}+1\right)}^{\mathrm{*}}\mathrm{.}$

For any $k\in \left[\mathrm{1,}d+\omega \right]$ , we assign all the vertices of the ith set in above sequence with role i, where $1\le i\le k$ , and assign all vertices of the other sets with role k. Then the result is valid by the similar discussion in Theorem 5.

The following three results are immediate from Theorem 5.

Corollary 3 Any path with n vertices is k-threshold close role assignable for any $k\in \left[\mathrm{1,}n\right]$ .

Corollary 4 Any tree whose longest path has t vertices is k-threshold close role assignable for any $k\in \left[\mathrm{1,}t\right]$ .

Corollary 5 Any cycle with n vertices is k-threshold close role assignable for

any $k\in \left[\mathrm{1,}\lceil \frac{n+1}{2}\rceil \right]$ .

Remark. Any cycle C with n vertices is k-threshold close role assignable for any $k\in \left[\mathrm{1,}n\right]$ . In fact, let

${v}_{1}\mathrm{,}{v}_{3}\mathrm{,}{v}_{5}\mathrm{,,}{v}_{n-1}\mathrm{,}{v}_{n}\mathrm{,}{v}_{n-2}\mathrm{,}\cdots \mathrm{,}{v}_{4}\mathrm{,}{v}_{2}\mathrm{,}\left(n\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{even}\right)\text{\hspace{0.05em}}$

or

${v}_{1}\mathrm{,}{v}_{3}\mathrm{,}{v}_{5}\mathrm{,}\cdots \mathrm{,}{v}_{n-2}\mathrm{,}{v}_{n}\mathrm{,}{v}_{n-1}\mathrm{,}\cdots \mathrm{,}{v}_{4}\mathrm{,}{v}_{2}\mathrm{.}\text{\hspace{0.17em}}\left(n\text{\hspace{0.17em}}\text{\hspace{0.05em}}\text{odd}\right)\text{\hspace{0.05em}}$

be the n vertices of C in clockwise order. For any $k\in \left[\mathrm{1,}n\right]$ , let $r\left({v}_{i}\right)=i$ for any $i=\mathrm{1,2,}\cdots \mathrm{,}k$ , $r\left({v}_{k+1}\right)=k-1$ and $r\left({v}_{j}\right)=k$ for $j=k+2,k+3,\cdots ,n$ . Then it is easy to see that r is a k-threshold close role assignment of C.

5. Maximal and Minimal k-Role Assignable Graphs

Suppose graph G with n vertices is k-role assignable. We may add (or delete) edges on G to get a complete (or empty) graph ${G}^{\prime}$ . It is easy to see that ${G}^{\prime}$ is k-role assignable too. So we can maximize or minimize the graph G and keep $r\left(N\left(x\right)\right)$ fixedness for any $x\in V\left(G\right)$ such that the resulting graph is still k-role assignable.

For a given k-role assignment r of graph G, the maximal (minimal, respectively) k-role assignable graph respect to r, denoted by ${G}_{r}^{+}$ ( ${G}_{r}^{-}$ , respectively), is the graph that will get by the following ways.

If ${V}_{i}={r}^{-1}\left(i\right)$ , where $i=\mathrm{1,2,}\cdots \mathrm{,}k$ , we may use the following ways to get ${G}_{r}^{+}$ .

• If $G\left[{V}_{i}\right]$ has no isolated vertices, then add some edges to join each pair of vertices unconnected in ${V}_{i}$ , where $i=\mathrm{1,2,}\cdots \mathrm{,}k$ .

• If $xy\in E\left(G\right)$ , where $x\in {V}_{i}$ and $y\in {V}_{j}$ , $i\mathrm{,}j\in \left\{\mathrm{1,2,}\cdots \mathrm{,}k\right\}$ , then add some edges on graph G such that each vertex of ${V}_{i}$ joins with every vertex of ${V}_{j}$ .

We may also use the following ways to get ${G}_{r}^{-}$ .

• If $G\left[{V}_{i}\right]$ has no isolated vertices, then delete some edges of $G\left[{V}_{i}\right]$ at mostly and keep $G\left[{V}_{i}\right]$ without any isolated vertex, where $i=1,2,\cdots ,k$ .

• If $xy\in E\left(G\right)$ , where $x\in {V}_{i}$ and $y\in {V}_{j}$ , $i\mathrm{,}j\in \left\{\mathrm{1,2,}\cdots \mathrm{,}k\right\}$ , then delete some edges between ${V}_{i}$ and ${V}_{j}$ at mostly but keeping $N\left(x\right)\cap {V}_{j}\ne \varnothing $ for any $x\in {V}_{i}$ and $N\left(y\right)\cap {V}_{i}\ne \varnothing $ for any $y\in {V}_{j}$ .

By the ways of constructing ${G}_{r}^{+}$ and ${G}_{r}^{-}$ , the following theorem is obvious.

Theorem 6 If a graph G is k-role assignable, then both ${G}_{r}^{+}$ and ${G}_{r}^{-}$ are all k-role assignable. Furthermore, ${G}_{r}^{+}$ ( ${G}_{r}^{-}$ , respectively) is the maximal (mini- mal, respectively) k-role assignable graph such that $r\left(N\left(x\right)\right)$ keeps fixedness for any $x\in V\left(G\right)$ , where r is some k-role assignment of graph G.

Acknowledgements

We thank the editor and the referee for their valuable comments. The work was supported in part by the Natural Science Foundation of Hebei Province of China under Grant A2015106045, and in part by the Institute of Applied Mathematics of Shijiazhuang University.

Conflicts of Interest

The authors declare no conflicts of interest.

[1] |
Everett, M.G. and Borgatti, S. (1991) Role Colouring a Graph. Mathematical Social Sciences, 21, 183-188. https://doi.org/10.1016/0165-4896(91)90080-B |

[2] |
Pekec, A. and Roberts, F.S. (2001) The Role Assignment Model Nearly Fits Most Social Networks. Mathematical Social Sciences, 41, 275-293. https://doi.org/10.1016/S0165-4896(00)00064-0 |

[3] | Roberts, F.S. (1998) Role Assignments and Indifference Graphs. In: Dowing, C., Roberts, F.S. and Theuns, P., Eds., Recent Trends in Mathematical Psychology, Lawrence Erlbaum Associates, Mahwah, 33-46. |

[4] | Roberts, F.S. and Sheng, L. (1996) Role Primitive Indifference Graphs and the Role Assignments on w-Fan Graphs. Congressus Numerantium, 121, 65-75. |

[5] | Roberts, F.S. and Sheng, L. (1999) Role Assignments. In: Alavi, Y., Lick, D.R. and Schwenk, A., Eds., Combinatorics, Grsph Theory, and Algorithms, Vol. 2, New Issues Press, Kalamazoo, 729-745. |

[6] | Van’t Hof, P., Paulusma, D. and Van Rooij, J.M.M. (2010) Computing Role Assignments of Chordal Graphs. Theoretical Computer Science, 411, 3601-3613. |

[7] |
Heggernes, P., Van’t Hof, P. and Paulusma, D. (2012) Computing Role Assignments of Proper Interval Graphs in Polynomial Time. Journal of Discrete Algorithms, 14, 173-188. https://doi.org/10.1016/j.jda.2011.12.004 |

[8] |
Dourado, M.C. (2016) Computing Role Assignments of Split Graphs. Theoretical Computer Science, 635, 74-84. https://doi.org/10.1016/j.tcs.2016.05.011 |

[9] |
Roberts, F.S. and Sheng, L. (2001) How Hard Is It to Determine if a Graph Has a 2-Role Assignment. Networks, 37, 67-73. https://doi.org/10.1002/1097-0037(200103)37:2<67::AID-NET1>3.0.CO;2-9 |

[10] |
Sheng, L. (2003) 2-Role Assignments on Triangulated Graphs. Theoretical Computer Science, 304, 201-214. https://doi.org/10.1016/S0304-3975(03)00084-7 |

[11] | Roberts, F.S. and Sheng, L. (1997) Threshold Role Assignments. Congressus Numerantium, 123, 135-148. |

Copyright © 2020 by authors and Scientific Research Publishing Inc.

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.