Implemented subgraph for FriendshipModel. Refactored UndirectedGraph to include shortestPath functionality.