×

Apparatus and method for generating a shortest-path tree in a graph

  • US 9,892,532 B2
  • Filed: 08/11/2015
  • Issued: 02/13/2018
  • Est. Priority Date: 08/25/2014
  • Status: Active Grant
First Claim
Patent Images

1. A method for causing at least one processor to execute a process comprising:

  • generating, for each of vertices in a graph that is configured to represent relationships between pieces of data represented by the vertices and edges connecting the vertices so as to cause the data to be searched for by using the graph, a shortest-path tree rooted at a root vertex that is equal to each vertex in the graph so that end-point vertices of each shortest path tree, whose distance from the root vertex is an integer of n equal to or greater than 0, are generated at a same time, the end-point vertex being a vertex positioned at an end point of a shortest path starting from the root vertex,the shortest-path tree representing shortest paths from the root vertex to all the end-point vertices,a path between two vertices being a sequence of edges connecting a sequence of adjacent vertices through which the two vertices are connected to each other,a length of the path being a number of edges included in the path,a shortest path between the two vertices being a path whose length is smallest among all paths between the two vertices,a distance between the two vertices being a length of the shortest path between the two vertices, whereingeneration of a distance N vertex among first vertices in a first shortest path tree, whose distance from a first root vertex is a natural number of N greater than 1 and which is adjacent to a distance N−

    1 vertex among the first vertices of the first shortest-path tree, whose distance from the first root vertex is N−

    1, is performed based on searching for zero or more child vertices of a second vertex corresponding to the distance N−

    1vertex of the first shortest path tree within a second shortest-path tree rooted at a second root vertex adjacent to the first root vertex, which is located on the shortest path from the first root vertex to the distance N−

    1 vertex.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×