Simplified GraphPath
Refactored