There is a function in Mathematica called CompleteGraph
which takes a number and makes a complete graph with that number of vertices:
CompleteGraph[5]
However, in the above the vertices become labelled {1,2,3,4,5}
. In contrast, given a set of vertices like e.g.,
vertices={1,3,5,6,8};
I would like to get a complete graph in which the vertices are labelled by the above labels. Is it possible to do that quickly (computationally efficiently) in Mathematica?