wwu-mmll/photonai_graph

GraphUtilities: Add an option for networkx graphs to be used as a list (conversion problem)

jernsting opened this issue · 3 comments

GraphUtilities: Add an option for networkx graphs to be used as a list (conversion problem)

For what use case exactly is this necessary?

This is needed for the case where networkx graphs are directly imported into the photonai-pipeline. Here photonai turns a list of networkx graphs into a numpy array. When this happens the individual networkx graphs are turned into numpy objects that are no longer networkx graphs. They become useless this way

This cannot be solved with a transformer.
The User should directly import the graph conversions and transform the networkx graphs in something that photon is able to handle (e.g. dense).

Example: https://github.com/wwu-mmll/photonai_graph/blob/dev/examples/networkx_example/networkx_pipeline.py