Group Abstract Group Abstract

Message Boards Message Boards

Labelling Special Edges of a Hasse Diagram

Posted 11 years ago

Hi all,

I am looking at Hasse Diagrams on the power set of {1, 2, ..., n} (trying to augment this code: http://demonstrations.wolfram.com/HasseDiagramOfPowerSets/ ). I have a subset of the power set, C, and I want to track which elements in the Hasse diagram are connected to each element of C.

Ideally, I would like to edit the EdgeColor section of the code to EdgeStyle with a simple pattern, essentially saying "If any node X is connected to any node Y in C, make the line between X and Y be dashed (or another color, etc)." I've experimented using MemberQ PatternTests, but so far nothing has come to fruition. This is one of my first times using Mathematica; any help is greatly appreciated!

Thanks

POSTED BY: Zev Woodstock
2 Replies
Posted 11 years ago

WOW! I did not expect this problem to require so much more code; I really appreciate the amount of work you put into this. Dent de Lion to the rescue, thanks a million!

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