def drawVectors(context, color, points):
     """Draw the vectors from the points."""
     for i in range(len(points) - 1):
         v = Vector.createFromTwoTuples(points[i],
                                        points[i + 1],
                                        color=color)
         v.showFromTuple(context, points[i])
 def drawVectors(self, index, color):
     """Draw the vectors from the points."""
     graph = self.graphs[index]
     for i in range(len(graph) - 1):
         v = Vector.createFromTwoTuples(graph[i], graph[i + 1], color=color)
         v.showFromTuple(self.context, graph[i])
 def getVectors(self, graph):
     """Return the list of vectors."""
     return [
         Vector.createFromTwoTuples(graph[i], graph[i + 1])
         for i in range(len(graph) - 1)
     ]