Create add_hyperedge method that can add edge by node names or by hypergraph
(method polymorphism)