def METHOD_NAME(self):
    """
    Iterate all the triples and create a nx Graph with undirected edges
    :return:
    """
    # also create a dictionary mapping reaction to the species idx it has ... using the graph .
    counter = 0
    unique_reactions = []
    for triple in self.triples:
        counter += 1
        print(f"{counter} out of {len(self.triples)}")
        s, p, o = [e.strip() for e in triple.split("\t")]
        s_idx = self.entity2idx[s]
        o_idx = self.entity2idx[o]
        # if p == "isReactant": # and o not in self.stop_hash:
        self.graph.add_node(s_idx)
        self.graph.add_node(o_idx)
        self.graph.add_edge(s_idx, o_idx)
        if o not in unique_reactions:
            unique_reactions.append(o)
    # pickle.dump(self.graph, open(self.graph_path, 'wb'))
    return unique_reactions