Examples for 'igraph::topo_sort'


Topological sorting of vertices in a graph

Aliases: topo_sort topological.sort

Keywords: graphs

### ** Examples


g <- barabasi.game(100)
topo_sort(g)
+ 100/100 vertices, from f0ba015:
  [1]   5  14  17  23  25  27  30  33  35  37  38  39  40  42  43  45  51  52
 [19]  53  54  57  58  59  60  61  62  63  64  65  66  67  68  69  70  71  72
 [37]  73  74  75  76  78  79  80  81  83  84  85  86  87  88  89  90  91  93
 [55]  94  95  96  98  99 100  22   3  56  21  50  24  26  10  32  36  46  11
 [73]  49  34  55  20  77  31   7  82  92   8  97  13  12  28  19  48  15  44
 [91]  47   4  18  29  16  41   9   6   2   1

[Package igraph version 1.3.1 Index]