I’ve just started teaching myself to work with graphs, and have created two, directed edge multi-graphs of letters from two sets of matched author and recipient lists. The graphs are unequal because they have different total numbers of author/recipients. Here, in a simplified form, is what I’ve been doing so far:
adAuthors={"mary", "peter", "peter", "peter"}
adRecipients={"jane", "arthur", "diana", "diana"}
adGraph=Graph[Thread[DirectedEdge[adAuthors, adRecipients]], VertexLabels -> Placed["Name", Tooltip]]
In other words, Mary wrote a letter to Jane, and Peter wrote letters to Arthur and (twice) to Diana. This data is a subset from a much larger dataset with many more attributes and where the authors and recipients are identified by their ID numbers. The second graph is constructed the same way. Here’s an example output using my real data:
I know that the two graphs (though of unequal length) share several common authors and recipients, and I’d like to find their list of common vertices, and also show this in a combined graph, indicating where the two graphs are connected. Later, I’d like to repeat this procedure for several more graphs, all sharing a small number of common authors and recipients.
Could someone offer some suggestions on how best to approach this? I’m very open to importing and working with my original spreadsheet data in MMA differently and more efficiently. These were just my very first beginner’s steps many thanks.





