# Plotting a complete graph with a given image as vertices [closed]

I am trying to plot a complete graph using a png image for the vertices. I tried a "drag and drop" approach with VertexShape, but the software gets blocked whenever I use it. I tried then to import the image first with the command Import, but I do not how to use it later. Here is my current attempt:

g=CompleteGraph[8, VertexShape-> Import["~/google-chrome-yellow-png-image-69499.png"]]


How can I give in input the png image to the VertexShape command?

• You appear to be attempting to use Mathematica syntax in Wolfram|Alpha. Wolfram|Alpha doesn't appear to have a translator to handle that. Questions solely about Wolfram|Alpha are not appropriate on this site. May 23 '21 at 15:00
• I’m voting to close this question because it is about using Wolfram|Alpha outside of Mathematica. May 23 '21 at 16:16
• As Bob said, Wolfram|Alpha and Mathematica are different systems. It is not possible to use Mathematica commands with Wolfram|Alpha (this is what you seem to be attempting). Wolfram|Alpha questions are not accepted on this site (except for questions concerned with accessing W|A from Mathematica). May 23 '21 at 16:18
• This is very interesting @PenelopeBenenati - do you think you might add some extra detail as a comment or an answer on this meta post about the topic? May 23 '21 at 19:56
• @CarlLange yes, I will. The answer is not obvious, otherwise there would not be any question. I think that people who used both the systems can say something more about it. May 23 '21 at 19:59

    myVertexShape =
Rasterize[
Graphics3D[PolyhedronData["Dodecahedron", "GraphicsComplex"],
Boxed -> False], ImageSize -> 100];

CompleteGraph[8, VertexShape -> myVertexShape, VertexSize -> .5]


Or...

flower = Import["https://upload.wikimedia.org/wikipedia/commons/e/e6/Rosa_rubiginosa_1.jpg"];

myVertexShape = Rasterize[flower];

CompleteGraph[8, VertexShape -> myVertexShape, VertexSize -> .5]


• Thank you for the answer! What about using a given image file .png that I have locally on my computer, instead of the dodecahedrons you created? May 23 '21 at 19:24
• Just upload your image file and Rasterize it. May 23 '21 at 20:47
• Thank you! Looks great! May 23 '21 at 21:02