How to link the Segment in Sketch and Profile Loop Edge

Hi, everybody.

I'm gonna parse the Solidworks Sketch information. But, I'm in trouble of the link of segmentation in sketch and the Profile loop edges. The fact is that a specific sketch consists of a variety of segments instances and these segments also make up several closed profile Loops. However, Solidworks doesn't support functions to fetch these segments from Profile Loops directly, which only has a access to the Edges Instances. So, the segments and these edges are apparently point to the same object. However, I can't find any API to link the two classes but through the parameter comparison (like start and end point for a Line.)

So, can someone helps to answer is there some way to link the Segments and Profile Loop Edges in a sketch