<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def edges_sparse(self):
 """ Edges in sparse bool COO graph format where connected vertices are True. Returns sparse: (len(self.vertices), len(self.vertices)) bool Sparse graph in COO format """

        sparse = graph.edges_to_coo(self.edges,
                                    count=len(self.vertices))
        return sparse