uniongraph - Union of 2 graphs
Perform the union of 2 graphs at the node ind in the first network.The first node of g2 is linked to the node ind of g1.
[g1,conn1]=waxmanconnex(0.2,0.3,80,1000); [g2,conn2]=waxmanconnex(0.3,0.4,20,100); [gu]=uniongraph(g1,g2,10); gu.edge_color=[5*ones(1,length(g1.head)) 1 2*ones(1,length(g2.head))]; gu.node_color=[5*ones(1,length(g1.node_x)) 2*ones(1,length(g2.node_x))]; show_graph(gu);