make a graph from a tuple or a tuple of tuples/lists