Made get_edges self class