code: def __len__(self):
      return len(self.sortedpaths)
  
file_path: networkx/networkx/algorithms/simple_paths.py
imports: from heapq import heappop, heappush
  from itertools import count
  import networkx
  from networkx.algorithms.shortest_paths.weighted import _weight_function
  from networkx.utils import not_implemented_for, pairwise
label_desc: Use image node_id 2 for calling the PathBuffer obj's underlying member method code with example usage: obj.__len__() and returns: len