docstr: Get the dates of edges from predecessors.
docstr_tok: ["Get","the","dates","of","edges","from","predecessors","."]
code: def get_pred_dates(self, Gx, Gx_node, core_x, pred):
      """
      Get the dates of edges from predecessors.
      """
      pred_dates = []
      if isinstance(
          Gx, nx.DiGraph
      ):  # Graph G[u][v] returns the data dictionary.
          for n in pred:
              pred_dates.append(
                  Gx[n][Gx_node][self.temporal_attribute_name]
              )
      else:  # MultiGraph G[u][v] returns a dictionary of key -> data dictionary.
          for n in pred:
              for edge in Gx[n][
                  Gx_node
              ].values():  # Iterates all edge data between node pair.
                  pred_dates.append(edge[self.temporal_attribute_name])
      return pred_dates
  
imports: import networkx
  from .isomorphvf2 import DiGraphMatcher, GraphMatcher
label_desc: Use image node_id 2 for calling the TimeRespectingDiGraphMatcher obj's underlying member method code with example usage: obj.get_pred_dates(Gx, Gx_node, core_x, pred) and returns: pred_dates