Group Abstract Group Abstract

Message Boards Message Boards

Deduct by the rules for two schemes?

Posted 7 years ago
POSTED BY: Math Logic
4 Replies
Posted 7 years ago

Excellent! Many thanks!

POSTED BY: Math Logic
Posted 7 years ago

This solution is based on the contribution how to get all leaves from a graph :

g = Graph[rules, VertexLabels -> Automatic];
vertices = VertexList[g];
leaves = Select[vertices, VertexOutDegree[g, #] === 0 &]

Using Graph offers the possibility to display the result:

HighlightGraph[g, Subgraph[g, leaves]]
POSTED BY: Michael Helmle

Here is my not very elegant approach (I am curious to see other/better solutions):

a //. Permutations[rules] // Union
(*  Out:  {x,y}  *)
POSTED BY: Henrik Schachner
Posted 7 years ago

So wonderful! Many thanks!

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