Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle DirectedArrow and UndirectedArrow #4

Open
rocky opened this issue Dec 14, 2020 · 0 comments
Open

Handle DirectedArrow and UndirectedArrow #4

rocky opened this issue Dec 14, 2020 · 0 comments

Comments

@rocky
Copy link
Contributor

rocky commented Dec 14, 2020

These more recent additions are used in Rules and Graphs. From Mathics3/mathicsscript#2

I am guessing this was a more recent addition so that's why there aren't in the otherwise meticulously precise FoxySheep?

Correct. In fact, the graph operators are parsed differently in current versions from when they were introduced not that long ago. They used to be non associative so that a [DirectedEdge] b [DirectedEdge] c was a syntax error. Now it's left associative (IIRC) so that the same expression is parsed as DirectedEdge[DirectedEdge[a, b], c].

I complained in the WolframLanguage Slack group that I wanted it to be parsed as Graph[{a > [DirectedEdge] b, b [DirectedEdge] c}], but the author of igraph, Szabolcs Horvát, whose knowledge of Mathematica is unparalleled outside of Wolfram, tells me that mine is the worst possible alternative for graph theory, so who am I to argue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant