Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Create function definitions that make Networks operate as LightGraphs.Graph transparently #4

@jpfairbanks

Description

@jpfairbanks

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...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions