JuliaGraphs / StaticGraphs.jl

Memory-efficient immutable LightGraphs.
Other
33 stars 8 forks source link

Overrides `complement` #35

Open gzagatti opened 2 years ago

gzagatti commented 2 years ago

This PR overrides the complement function from Graphs such that it can be called directly with a static graph.

The function is more convenient (and hopefully more efficient) than converting a StaticGraph to a SimpleGraph, applying complement and converting back to StaticGraph.