def to_networkx_graph(self, include_unpaired=None):
    'Converts to networkx graph, encodes hexagonal nodes with colors.'
    from planar_graph_sampler.combinatorial_classes.half_edge_graph import color_scale
    nodes = self.half_edge.node_dict()
    G = super(IrreducibleDissection, self).to_networkx_graph(include_unpaired=False)
    for v in G:
        if any([he.is_hexagonal for he in nodes[v]]):
            G.nodes[v]['color'] = '#e8f442'
        else:
            G.nodes[v]['color'] = '#aaaaaa'
        if (nodes[v][0].color is 'black'):
            G.nodes[v]['color'] = color_scale(G.nodes[v]['color'], 0.5)
    return G
Converts to networkx graph, encodes hexagonal nodes with colors.
def to_networkx_graph(self, include_unpaired=None):
    
    from planar_graph_sampler.combinatorial_classes.half_edge_graph import color_scale
    nodes = self.half_edge.node_dict()
    G = super(IrreducibleDissection, self).to_networkx_graph(include_unpaired=False)
    for v in G:
        if any([he.is_hexagonal for he in nodes[v]]):
            G.nodes[v]['color'] = '#e8f442'
        else:
            G.nodes[v]['color'] = '#aaaaaa'
        if (nodes[v][0].color is 'black'):
            G.nodes[v]['color'] = color_scale(G.nodes[v]['color'], 0.5)
    return G