@vikthor didn’t mention that his curve is on a cylindrical surface, apparently considering that detail to be irrelevant. It most definitely is not irrelevant! This is a “flow along surface” problem, not a “Curvature Graph” problem.
To demonstrate further, here is the same code I posted yesterday (curvature_2019Nov22dd2.gh) but with the derived cylinder group (yellow) moved out of the picture and two more surfaces and curves added:
“Bumpy” is from here:
Enneper surface is from here (included in this code, with random curve on surface added):
curvature_2019Nov23a.gh (63.5 KB)