@@ -55,8 +55,10 @@ def __init__(self, api_credentials: AuraAPICredentials) -> None:
5555 """
5656 Initializes a new instance of the GdsSessions class.
5757
58- Args:
59- api_credentials (AuraAPICredentials): The Aura API credentials used for establishing a connection.
58+ Parameters
59+ ----------
60+ api_credentials
61+ The Aura API credentials used for establishing a connection.
6062 """
6163 aura_env = os .environ .get ("AURA_ENV" )
6264 aura_api = AuraApi (
@@ -71,23 +73,34 @@ def estimate(
7173 self ,
7274 node_count : int ,
7375 relationship_count : int ,
74- algorithm_categories : Optional [ list [AlgorithmCategory ]] = None ,
76+ algorithm_categories : list [AlgorithmCategory ] | list [ str ] | None = None ,
7577 node_label_count : int = 0 ,
7678 node_property_count : int = 0 ,
7779 relationship_property_count : int = 0 ,
7880 ) -> SessionMemory :
7981 """
8082 Estimates the memory required for a session with the given node and relationship counts.
8183
82- Args:
83- node_count (int): The number of nodes.
84- relationship_count (int): The number of relationships.
85- algorithm_categories (Optional[list[AlgorithmCategory]]): The algorithm categories to consider.
86- node_label_count (int): The number of node labels.
87- node_property_count (int): The number of node properties.
88- relationship_property_count (int): The number of relationship properties.
89- Returns:
90- SessionMemory: The estimated memory required for the session.
84+ Parameters
85+ ----------
86+ node_count
87+ Number of nodes.
88+ relationship_count
89+ Number of relationships.
90+ algorithm_categories
91+ The algorithm categories to consider.
92+ node_label_count
93+ Number of node labels.
94+ node_property_count
95+ Number of node properties.
96+ relationship_property_count
97+ Number of relationship properties.
98+
99+
100+ Returns
101+ -------
102+ SessionMemory
103+ The estimated memory required for the session.
91104 """
92105 if algorithm_categories is None :
93106 algorithm_categories = []
0 commit comments