Examples for 'igraph::as.igraph'


Conversion to igraph

Aliases: as.igraph as.igraph.igraphHRG

Keywords: graphs

### ** Examples


g <- make_full_graph(5) + make_full_graph(5)
hrg <- fit_hrg(g)
as.igraph(hrg)
IGRAPH f653d96 DN-- 19 18 -- Fitted HRG
+ attr: name (g/c), name (v/c), prob (v/n)
+ edges from f653d96 (vertex names):
 [1] g1->g6 g2->6  g3->2  g4->g2 g5->g7 g6->g5 g7->1  g8->g9 g9->g4 g1->g8
[11] g2->7  g3->4  g4->9  g5->3  g6->g3 g7->5  g8->10 g9->8 

[Package igraph version 1.3.1 Index]