comparing two graphs in R

Sunday, July 6, 2014

I have two files having 3 columns and 100 rows. In one file i have say aa in third column and in another file i have 11 in third column everywhere. Remaining two columns contain different entries. I have formed graph of both the files taking there is an edge between the two nodes if there exists a third column for them. For eg. suppose one file is

1 2 aa
2 3 aa
4 5 aa
5 7 aa

then, graph formed will have edges between 1 and 2, 2 and 3, 4 and 5, 5 and 7 and value of that edge will be aa. I have to compare the two graphs. What parameters can i use in R language for comparing them? I considered bar plots etc but they werent helpful. Thanks.