How to make pathfinding result curved?

For now the pathfinding result between patrol nodes are all straight lines, which will make the NPCs look robotic.
How can I make this result to be a curved line?
I use C++ code to move the character not Blueprint.