-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directed vs undirected edges #16
Comments
Yeah, I think it makes sense for directed and undirected edges to be separate. In my GraphInterface/GraphTypes proposal, I have the following: # GraphInterface.jl
abstract type AbstractEdge end
abstract type AbstractUndirectedEdge <: AbstractEdge end
abstract type AbstractDirectedEdge <: AbstractEdge end
# GraphTypes.jl
struct Edge <: AbstractUndirectedEdge
# ...
end ...And I have |
One question: Do we want to support mixed graphs that include both directed and undirected graphs? I think that would have a significant impact on the interface design. |
I would love a design where undirected edges have the right to exist, and where we can turn As for mixed graphs, it's a good question. My feeling is that if we get the interface right for the edges, most things should... sorta just work out of the box? Like a Dijkstra algorithm would return a mixed vector of directed and undirected |
I like @CameronBieganek's decision on Only thing I'm not sure about is the use of |
The edge types in Graphs.jl are directed but used for undirected graphs too, in sometimes incoherent ways. Should there be an undirected edge acting like a set? And if so, should the syntax change, eg.
other_endpoint(e,u)
?The text was updated successfully, but these errors were encountered: