Selecting vertices, edges and faces within an area


I have been searching for a while now but I can’t find any thing useful in regards to selecting vertices, edges or faces in a area of a mesh. Does anyone know something in the API or maybe a python script that will allow me say here is an area return me a list of edges in that area of this mesh…?

Thanks for any help.