lass="python">class MatplotlibGraphDrawer(AbstractGraphDrawer):
    &#34;&#34;&#34;Graph drawer that uses a pyplot.Axes as context&#34;&#34;&#34;

    _shape_dict = {
        &#34;rectangle&#34;: &#34;s&#34;,
        &#34;circle&#34;: &#34;o&#34;,
        &#34;hidden&#34;: &#34;none&#34;,
        &#34;triangle-up&#34;: &#34;^&#34;,
        &#34;triangle-down&#34;: &#34;v&#34;,
    }

    def __init__(
        self,
        ax,
        vertex_drawer_factory=MatplotlibVertexDrawer,
        edge_drawer_factory