code: def _init_filled_edges(self, renderer, properties, edge_mapping):
          "Replace edge renderer with filled renderer"
          glyph_model = Patches if self.filled else Bezier
          allowed_properties = glyph_model.properties()
          for glyph_type in ('', 'selection_', 'nonselection_', 'hover_', 'muted_'):
              glyph = getattr(renderer.edge_renderer, glyph_type+'glyph', None)
              if glyph is None:
                  continue
              group_properties = dict(properties)
              props = self._process_properties(self.edge_glyph, group_properties, {})
              filtered = self._filter_properties(props, glyph_type, allowed_properties)
              new_glyph = glyph_model(**dict(filtered, **edge_mapping))
              setattr(renderer.edge_renderer, glyph_type+'glyph', new_glyphf _init_filled_edges(self, renderer, properties, edge_mapping):
          "Replace edge renderer with filled renderer"
          glyph_model = Patches if self.filled else Bezier
          allowed_properties = glyph_model.properties()
          for glyph_type in ('', 'selection_', 'nonselection_', 'hover_', 'muted_'):
              glyph = getattr(renderer.edge_renderer, glyph_type+'glyph', None)
              if glyph is None:
                  continue
              group_properties = dict(properties)
              props = self._process_properties(self.edge_glyph, group_properties, {})
              filtered = self._filter_properties(props, glyph_type, allowed_properties)
              new_glyph = glyph_model(**dict(filtered, **edge_mapping))
              setattr(renderer.edge_renderer, glyph_type+'glyph', new_glyph)
docs: Replace edge renderer with filled renderer