Create functions for constructing SimpleGraph
and SimpleDiGraph
from an AbstractGraph
.
#98
Labels
Milestone
SimpleGraph
and SimpleDiGraph
from an AbstractGraph
.
#98
As mentioned in #88 , we should have some constructors that take an
AbstractGraph
and create aSimpleGraph
orSimpleDiGraph
from that. I.e. the functions that we need are:It is not entirely clear what should happen if
g
is a directed graph and we try to construct an undirected graph from that, but to be consistent with what we already have in similar functions, we should probably add an edge between two verticesu
andv
if the input graph has an edgeu -> v
or an edgev -> u
. Alternatively we could add a keyword argumentthat would allow one to specify the expected behavior. Maybe there is also a better name than
weakly_connected
for that.The text was updated successfully, but these errors were encountered: