class_docstr: Collection of vertex patches for plotting.
  
  This class takes additional keyword arguments compared to PatchCollection:
  
  @param vertex_builder: A list of vertex builders to construct the visual
      vertices. This is updated if the size of the vertices is changed.
  @param size_callback: A function to be triggered after vertex sizes are
      changed. Typically this redraws the edges.
class_docstr_tok: ["Collection","of","vertex","patches","for","plotting",".","This","class","takes","additional","keyword","arguments","compared","to","PatchCollection",":","@","param","vertex_builder",":","A","list","of","vertex","builders","to","construct","the","visual","vertices",".","This","is","updated","if","the","size","of","the","vertices","is","changed",".","@","param","size_callback",":","A","function","to","be","triggered","after","vertex","sizes","are","changed",".","Typically","this","redraws","the","edges","."]
docstr: Set vertex sizes.
  
  This rescales the current vertex symbol/path linearly, using this
  value as the largest of width and height.
  
  @param sizes: A sequence of vertex sizes or a single size.
docstr_tok: ["Set","vertex","sizes",".","This","rescales","the","current","vertex","symbol\/path","linearly",",","using","this","value","as","the","largest","of","width","and","height",".","@","param","sizes",":","A","sequence","of","vertex","sizes","or","a","single","size","."]
code: def set_size(self, sizes):
      """Set vertex sizes.
  
      This rescales the current vertex symbol/path linearly, using this
      value as the largest of width and height.
  
      @param sizes: A sequence of vertex sizes or a single size.
      """
      paths = self._paths
      try:
          iter(sizes)
      except TypeError:
          sizes = [sizes] * len(paths)
  
      sizes = list(sizes)
      current_sizes = self.get_sizes()
      for path, cursize in zip(paths, current_sizes):
          # Circular use of sizes
          size = sizes.pop(0)
          sizes.append(size)
          # Rescale the path for this vertex
          path.vertices *= size / cursize
  
      self._stale_size = True
      self.stale = True
  
imports: from math import pi
  from igraph.drawing.baseclasses import AbstractVertexDrawer
  from igraph.drawing.metamagic import AttributeCollectorBase
  from igraph.drawing.shapes import ShapeDrawerDirectory
  from igraph.drawing.matplotlib.utils import find_matplotlib
  from igraph.drawing.utils import FakeModule
label_desc: Use image node_id 4 for calling the VertexCollection obj's underlying member method code with example usage: obj.set_size(sizes) without return types