szhorvat / IGraphM

IGraph/M is the igraph interface for Mathematica
http://szhorvat.net/mathematica/IGraphM
Other
90 stars 17 forks source link

IGLayoutReingoldTilford does not choose root correctly #84

Closed szhorvat closed 3 years ago

szhorvat commented 5 years ago

Understand why this does not choose the root vertex as the 0-indegree node. The R interface does.

IGLayoutReingoldTilford@
 Graph[{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
    19}, {3 -> 1, 3 -> 2, 6 -> 3, 5 -> 4, 6 -> 5, 11 -> 6, 9 -> 7, 
   9 -> 8, 10 -> 9, 11 -> 10, 19 -> 11, 14 -> 12, 14 -> 13, 17 -> 14, 
   16 -> 15, 17 -> 16, 18 -> 17, 19 -> 18}]

image