Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 432 Bytes

remove_singleton_nodes.md

File metadata and controls

14 lines (9 loc) · 432 Bytes

Remove Singleton Nodes

The Remove Singleton Nodes operation can be used to remove all nodes in the graph that has a degree of 0. i.e. they are not participating in any edges.

This operation is typically useful for pruning graphs with isolated nodes before using them in machine learning workflows.

kgx.graph_operations.remove_singleton_nodes

.. autofunction:: kgx.graph_operations.remove_singleton_nodes