Test of directedness could happen outside the find_edges function
Anaphory opened this issue · comments
Gereon Kaiping commented
Currently, the lapply
in
Line 667 in 906f423
calls a function which in every call – i.e. for every subgraph (at least not for every edge, as I originally thought) – tests whether the graph is directed or not:
Lines 583 to 589 in 906f423
Would it not make sense to define
find_edges
differently for directed and undirected graphs, ie. essentially swapping lines 583 and 589 (with a copy of line 583 in the else, between 625 and 626)?Lucas van der Meer commented
Fixed in v0.6.0