Closed szhorvat closed 2 years ago
Describe the bug
When IGGraphEditor is given an initial undirected graph, it still adds directed edges.
IGGraphEditor
To Reproduce
Evaluate IGGraphEditor[Graph[{1 <-> 2}]] then add an edge. Even though the input graph was undirected, it adds directed edges.
IGGraphEditor[Graph[{1 <-> 2}]]
When fixing this, pay attention to empty (edgeless) graphs. They should be treated as undirected. Note that
In[21]:= Through[{DirectedGraphQ, UndirectedGraphQ}[Graph[{1, 2}, {}]]] Out[21]= {True, True}
Describe the bug
When
IGGraphEditor
is given an initial undirected graph, it still adds directed edges.To Reproduce
Evaluate
IGGraphEditor[Graph[{1 <-> 2}]]
then add an edge. Even though the input graph was undirected, it adds directed edges.When fixing this, pay attention to empty (edgeless) graphs. They should be treated as undirected. Note that