docstr: 传入文件路径，生成处理好的scipy_sparse_matrix对象。paths支持的路径形式可以参考 ：:meth:`fastNLP.io.Loader.load`
  
  :param path:
  :return: scipy_sparse_matrix
docstr_tok: ["\u4f20\u5165\u6587\u4ef6\u8def\u5f84\uff0c\u751f\u6210\u5904\u7406\u597d\u7684scipy_sparse_matrix\u5bf9\u8c61\u3002paths\u652f\u6301\u7684\u8def\u5f84\u5f62\u5f0f\u53ef\u4ee5\u53c2\u8003","\uff1a",":","meth",":","`","fastNLP.io.Loader.load","`",":","param","path",":",":","return",":","scipy_sparse_matrix"]
code: def build_graph_from_file(self, path: str):
      r"""
      传入文件路径，生成处理好的scipy_sparse_matrix对象。paths支持的路径形式可以参考 ：:meth:`fastNLP.io.Loader.load`
  
      :param path:
      :return: scipy_sparse_matrix
      """
      raise NotImplementedError
  
imports: from collections import defaultdict
  import itertools
  import math
  import numpy
  from ..data_bundle import DataBundle
  from ..loader.classification import MRLoader, OhsumedLoader, R52Loader, R8Loader, NG20Loader
  from fastNLP.core.utils import f_rich_progress
label_desc: Use image node_id 5 for calling the GraphBuilderBase obj's underlying member method code with example usage: obj.build_graph_from_file(path) without return types