@@ -70,13 +70,6 @@ def _handle_properties(
7070 )
7171
7272
73- class GraphElementPropertyRunner (GraphEntityOpsBaseRunner ):
74- @compatible_with ("stream" , min_inclusive = ServerVersion (2 , 2 , 0 ))
75- def stream (self , G : Graph , node_properties : str , node_labels : Strings = ["*" ], ** config : Any ) -> DataFrame :
76- self ._namespace += ".stream"
77- return self ._handle_properties (G , node_properties , node_labels , config )
78-
79-
8073class GraphNodePropertyRunner (GraphEntityOpsBaseRunner ):
8174 @compatible_with ("stream" , min_inclusive = ServerVersion (2 , 2 , 0 ))
8275 @filter_id_func_deprecation_warning ()
@@ -197,6 +190,16 @@ def drop(self, G: Graph, node_properties: List[str], **config: Any) -> "Series[A
197190 ).squeeze ()
198191
199192
193+ class GraphRelationshipPropertyRunner (GraphEntityOpsBaseRunner ):
194+ @compatible_with ("stream" , min_inclusive = ServerVersion (2 , 2 , 0 ))
195+ def stream (
196+ self , G : Graph , relationship_property : str , relationship_types : Strings = ["*" ], ** config : Any
197+ ) -> DataFrame :
198+ self ._namespace += ".stream"
199+ relationship_types = [relationship_types ] if isinstance (relationship_types , str ) else relationship_types
200+ return self ._handle_properties (G , relationship_property , relationship_types , config )
201+
202+
200203class GraphRelationshipPropertiesRunner (GraphEntityOpsBaseRunner ):
201204 @compatible_with ("stream" , min_inclusive = ServerVersion (2 , 2 , 0 ))
202205 def stream (
0 commit comments