How to update specific node type's nodes by a projection martix?

I tried apply nodes api, but it doesn’t work as I thought. Is there any way can solve the question? Or maybe I didn’t use properly?

Thanks

You can do it outside apply_nodes by something like:

g.nodes[your_node_type].data['h'] = your_projection_function(g.nodes[your_node_type].data['h'])

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.