extract_egos_and_return function

This extracts egos from igraph/network data if they are named in ego_nameand returns an egor object