|
|
|
|
|
by sterlind
1423 days ago
|
|
Graph rewriting systems are really neat. I've been working in Mathematica lately, and the language is a term-rewriting system. It's been really powerful and intuitive and for the life of me I can't understand why it's not more common. Specifically, I read about the SubsetCases predicate: SubsetCases[expr, pattern] returns subsets of expr that match the pattern. You can draw a triangle graph, put slots as the node names, and do SubsetCases[graph,triangle] to pull out all the triangle subgraphs! Mind-blowing. You can also transform graphs really easily like this. Phenomenally powerful, though the computational complexity must get gnarly. |
|
https://news.ycombinator.com/item?id=31928608
That kind of also describes every other Wolfram-related submission :/