You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
In #1 we discussed the need for the Network type to behave as a Graph when calling LightGraphs functions. In this way we are extending the behavior of the type Graph by embedding it into another type. One way to do this is with some metaprogramming that takes every function in a list and creates a new function that first converts the first argument to a SimpleGraph.
The goal is to generate for each function in some list f(g::SimpleGraph, args...)->f(convert(SimpleGraph, network), args...)
In #1 we discussed the need for the Network type to behave as a Graph when calling LightGraphs functions. In this way we are extending the behavior of the type Graph by embedding it into another type. One way to do this is with some metaprogramming that takes every function in a list and creates a new function that first converts the first argument to a SimpleGraph.
The goal is to generate for each function in some list
f(g::SimpleGraph, args...)->f(convert(SimpleGraph, network), args...)