GraphUtilities: Add an option for networkx graphs to be used as a list (conversion problem)
jernsting opened this issue · 3 comments
jernsting commented
GraphUtilities: Add an option for networkx graphs to be used as a list (conversion problem)
jernsting commented
For what use case exactly is this necessary?
VHolstein commented
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
jernsting commented
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