Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you check the manual for the show method you can see there is an argument called cover_labels. You can use this to put labels. I think that if you want to further manipulate the diagram you'll need to check the manual under the show method for DiGraphs, as this is what is being called through the Poset class.

for (i,x) in enumerate(Po.cover_relations()):
    label[tuple(x)] = i

This produces.

image description