class_docstr: Implemetation of graph in order to sample metapath random walk.
      
docstr: Load edges from file.
          
docstr_tok: ["Load","edges","from","file","."]
code: def load_edges(self, file_, symmetry=False):
      """Load edges from file."""
      edges = []
      with open(file_, "r") as reader:
          for line in reader:
              items = line.strip().split()
              src, dst = int(items[0]), int(items[1])
              edges.append((src, dst))
              if symmetry:
                  edges.append((dst, src))
          edges = np.array(list(set(edges)), dtype=np.int64)
          #  edges = list(set(edges))
      return edges
  
file_path: PGL/legacy/examples/distribute_metapath2vec/graph.py
imports: import argparse
  import sys
  import os
  import numpy
  import pickle
  import tqdm
  import time
  import random
  from pgl.utils.logger import log
  from pgl import heter_graph
label_desc: Use image node_id 3 for calling the m2vGraph obj's underlying member method code with example usage: obj.load_edges(file_, symmetry) and returns: edges