Skip to content

Protect internal methods

  • Hide methods, not needed by users behind _ or even in a dedicated field (composition)
    • add_input, add_output, open, close and other graph
    • renaming add_input to _add_input (or other names) will create a conflict with currently existing _add_input. Therefore need to give the classes readable names
    • ensure only data related methods are available to the user