Merge two graph type into one