22
33# Represents an object with a name, node type, and position that can serve as a
44# node in a graph.
5- from typing import Optional
65from causallearn .graph .NodeType import NodeType
76from causallearn .graph .NodeVariableType import NodeVariableType
87
98
109class Node :
11- node_type : NodeType
12- node_name : str
1310
14- def __init__ (self , node_name : Optional [str ] = None , node_type : Optional [NodeType ] = None ) -> None :
15- self .node_name = node_name
16- self .node_type = node_type
17-
1811 # @return the name of the variable.
1912 def get_name (self ) -> str :
20- return self . node_name
13+ pass
2114
2215 # set the name of the variable
2316 def set_name (self , name : str ):
24- self . node_name = name
17+ pass
2518
2619 # @return the node type of the variable
2720 def get_node_type (self ) -> NodeType :
28- return self . node_type
21+ pass
2922
3023 # set the node type of the variable
3124 def set_node_type (self , node_type : NodeType ):
32- self . node_type = node_type
25+ pass
3326
3427 # @return the intervention type
3528 def get_node_variable_type (self ) -> NodeVariableType :
@@ -42,7 +35,7 @@ def set_node_variable_type(self, var_type: NodeVariableType):
4235
4336 # @return the name of the node as its string representation
4437 def __str__ (self ):
45- return self . node_name
38+ pass
4639
4740 # @return the x coordinate of the center of the node
4841 def get_center_x (self ) -> int :
@@ -66,7 +59,7 @@ def set_center(self, center_x: int, center_y: int):
6659
6760 # @return a hashcode for this variable
6861 def __hash__ (self ):
69- return hash ( self . node_name )
62+ pass
7063
7164 # @return true iff this variable is equal to the given variable
7265 def __eq__ (self , other ):
0 commit comments