mathematics Article Use the K-Neighborhood Subgraphs to Compute Canonical Labelings of Graphs Jianqiang Hao 1,*, Yunzhan Gong 2, Jianzhi Sun 1 and Li Tan 1 1 Beijing Key Laboratory of Big Data Technology for Food Safety, Beijing Technology and Business University, No. 11, Fu Cheng Road, Beijing 100048, China 2 State Key Laboratory of Networking and Switching Technology, Beijing University of Posts and Telecommunications, No 10, Xitucheng Road, Haidian District, Beijing 100876, China * Correspondence:
[email protected]; Tel.: +86-10-6898-5704 Received: 5 July 2019; Accepted: 27 July 2019; Published: 31 July 2019 Abstract: This paper puts forward an innovative theory and method to calculate the canonical labelings of graphs that are distinct to Nauty’s. It shows the correlation between the canonical labeling of a graph and the canonical labeling of its complement graph. It regularly examines the link between computing the canonical labeling of a graph and the canonical labeling of its open k-neighborhood subgraph . It defines dif fusion degree sequences and entire dif fusion degree sequence . For each node of a graph G, it designs a characteristic m_NearestNode to improve the precision for calculating canonical labeling. Two theorems established here display how to compute the first nodes of MaxQ(G). Another theorem presents how to determine the second nodes of MaxQ(G). When computing Cmax(G), if MaxQ(G) already holds the first i nodes u1, u2, ··· , ui, Diffusion and Nearest Node theorems provide skill on how to pick the succeeding node of MaxQ(G). Further, it also establishes two theorems to determine the Cmax(G) of disconnected graphs.