changing node shape in NetworkX

Question:

I need nodes in different shapes in NetworkX, some rectangle and triangle nodes. Does anybody know if it is possible?

Answers:

Found it, there is a property node_shape that allows changing shape.

Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.