code: def branchings_segments(self):
          
          self.detect_branchings()
          self.postprocess_segments()
          self.set_segs_names()
          self.order_pseudotime()
docs: Detect branchings and partition the data into corresponding segments.
  
          Detect all branchings up to `n_branchings`.
  
          Writes
          ------
          segs : np.ndarray
              Array of dimension (number of segments) × (number of data
              points). Each row stores a mask array that defines a segment.
          segs_tips : np.ndarray
              Array of dimension (number of segments) × 2. Each row stores the
              indices of the two tip points of each segment.
          segs_names : np.ndarray
              Array of dimension (number of data points). Stores an integer label
              for each segment.