hetio / hetnetpy

Hetnets in Python (relocated from dhimmel/hetio)
https://het.io/software
Other
93 stars 28 forks source link

metaedge_to_adjacency_matrix as a Graph class method? #17

Closed dhimmel closed 6 years ago

dhimmel commented 6 years ago

Do we want to make metaedge_to_adjacency_matrix a method of the hetio.hetnet.Graph class? Suggested implementation:

    def metaedge_to_adjacency_matrix(self, *args, **kwargs):
        import hetio.matrix
        hetio.matrix.metaedge_to_adjacency_matrix(self, *args, **kwargs)

This is relevant for changes we're considering in hetmech, specially the construction of a HetMat class.

dhimmel commented 6 years ago

We decided that this functionality is a better fit for hetmech and that this would be non-standard for hetio's design.