How to input graph to Wolfram|Alpha?

I put

Graph [{1, 2, 3}, {DirectedEdge[1, 2], DirectedEdge[2, 3], DirectedEdge[3, 1]}]

to https://www.wolframalpha.com/ and have got “Interpreting as: 1, 2, 3”! Why so? No graph flavor at all.
How to give Graph to Wolfram|Alpha?

Hi Alex,

Wolfram|Alpha does not interpret all WL syntax. Is this what you were trying to do?

Hi Rohit! Thanks. And I have found this one

Graph[{1 \[DirectedEdge] 2, 2 \[DirectedEdge] 3, 3 \[DirectedEdge] 1}]

:slight_smile:

Alex,

How or where did you determine

Graph[{1 \ [DirectedEdge] 2, 2 \ [DirectedEdge] 3, 3 \ [DirectedEdge] 1}]

was the correct commands to achieve

Graph [{1, 2, 3}, {DirectedEdge[1, 2], DirectedEdge[2, 3], DirectedEdge[3, 1]}]

Thanks!

Jim

Hi Jim!
I use https://www.wolframalpha.com/ for input, and it was somewhere in the answer tabs the syntax you mentioned first, but remember that you need not space between "" and “[”.

As Rohit mentioned the second command does not work in Alpha.

If you need another example of \[ syntax look here Can Graph[] produce a dashed single-directed edge, and if so how?

Alex