Searching and Ranking in Entity-Relationship Graphs