Message Boards Message Boards

GROUPS:

How to input graph to Wolfram|Alpha?

Posted 2 months ago
547 Views
|
4 Replies
|
2 Total Likes
|

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?

4 Replies
Posted 2 months ago

Hi Alex,

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

Posted 2 months ago

Hi Rohit! Thanks. And I have found this one

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

:-)

Posted 2 months ago

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

Posted 2 months ago

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 https://community.wolfram.com/groups/-/m/t/1979979

Alex

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract