**Describe the bug**
The following code makes R / rigraph crash.
**To reprod…uce**
~~~
# sessionInfo()
# Platform: x86_64-w64-mingw32/x64 (64-bit)
# Running under: Windows 10 x64 (build 22000)
# R version 4.1.3 (2022-03-10)
# [1] compiler_4.1.3 magrittr_2.0.1 pkgconfig_2.0.3
# [1] igraph_1.3.1
sg <- graph_from_literal(
4 -+1 , 20-+1 , 34-+1 , 35-+1 , 68-+1 , 69-+1 , 75-+1 , 3 -+2 , 12-+2 , 14-+2
,65-+2 , 2 -+3 , 13-+3 , 15-+3 , 26-+3 , 1 -+4 , 6 -+4 , 9 -+4 , 27-+4 , 40-+4
,12-+5 , 18-+5 , 22-+5 , 4 -+6 , 12-+6 , 37-+6 , 41-+6 , 43-+6 , 46-+6 , 11-+7
,43-+7 , 47-+7 , 74-+7 , 19-+9 , 34-+9 , 37-+9 , 71-+9 , 40-+10, 53-+10, 7 -+11
,25-+11, 34-+11, 2 -+12, 6 -+12, 16-+12, 17-+12, 19-+12, 14-+13, 52-+13, 68-+13
,38-+14, 70-+14, 52-+15, 73-+15, 30-+16, 41-+16, 41-+17, 67-+17, 17-+18, 69-+18
,72-+18, 50-+19, 73-+19, 75-+19, 37-+20, 23-+21, 28-+21, 67-+21, 5 -+22, 69-+22
,72-+22, 71-+23, 64-+25, 65-+26, 68-+27, 72-+27, 21-+28, 16-+30, 36-+30, 42-+30
,42-+32, 9 -+34, 48-+34, 40-+35, 44-+35, 47-+36, 61-+36, 6 -+37, 49-+37, 45-+38
,70-+38, 74-+38, 53-+39, 64-+39, 65-+39, 35-+40, 16-+41, 32-+42, 61-+42, 73-+43
,38-+44, 50-+44, 71-+44, 48-+45, 59-+47, 45-+48, 67-+48, 50-+49, 44-+50, 49-+50
,21-+53, 39-+53, 66-+56, 47-+59, 66-+60, 7 -+64, 10-+64, 39-+64, 20-+65, 25-+65
,39-+65, 60-+66, 26-+67, 48-+67, 36-+69, 38-+70, 46-+70, 44-+71, 64-+71, 27-+72
,15-+73
)
tg <- sg %>% get.edgelist %>% .[, 2:1] %>% graph_from_edgelist(directed=TRUE) # transpose graph
permute(tg, V(tg)$name) # restore original order of vertices
~~~
If you are confident that the issue is not in the R interface but in the
C core of igraph, please add it to the main [igraph repo](https://github.com/igraph/igraph)
instead.
If you are unsure, feel free to add your issue here - we will transfer it to
the main [igraph repo](https://github.com/igraph/igraph) if the root cause is
in the C core of igraph.
**Version information**
igraph_1.3.1