[AdgPath] Added adg_path_get_segment()