The Fold Predicate operation can be use to transform every instance of a predicate
to a node property such that if S - P -> O
,
P
becomes the node property name on nodeS
O
becomes the value for the node propertyP
on nodeS
.. autofunction:: kgx.graph_operations.fold_predicate