Disclosed is a graph generating method and apparatus, the graph generating apparatus that may recognize one source vertex among a plurality of vertices, obtain the target number of at least one edge to generate from the source vertex, among the total target number of edges to generate between the vertices, obtain a recursive vector to be used repeatedly to generate the at least one edge, in a scope in which an existence of an edge for the source vertex needs to be verified, and generate the at least one edge between the source vertex and at least one destination vertex based on the target number and the recursive vector.