def __get_segments_from_cycle(graph, cycle_path):
list_of_segments = []<EOL>for n in cycle_path[::-<NUM_LIT:1>]:<EOL><INDENT>segments = __get_segments_from_node(n, graph)<EOL>if segments:<EOL><INDENT>list_of_segments.append(segments)<EOL><DEDENT><DEDENT>return list_of_segments<EOL>
Calculates the segments that emanate from the main cycle.