37 lines
702 B
Python
37 lines
702 B
Python
|
"""
|
||
|
Join module
|
||
|
SPDX - License - Identifier: LGPL - 3.0 - or -later
|
||
|
Copyright © 2020 Project Author Pilar Monsalvete Alvarez de Uribarri pilar.monsalvete@concordia.ca
|
||
|
Contributor Milad milad.aghamohamadnia@concordia.ca
|
||
|
"""
|
||
|
|
||
|
from typing import List, TypeVar
|
||
|
|
||
|
Node = TypeVar['Node']
|
||
|
|
||
|
|
||
|
class Join:
|
||
|
"""
|
||
|
Join class
|
||
|
"""
|
||
|
|
||
|
def __init__(self):
|
||
|
self._nodes = None
|
||
|
self._nodes_ids = None
|
||
|
|
||
|
@property
|
||
|
def nodes(self) -> List[Node]:
|
||
|
"""
|
||
|
List of nodes which are very close together forming a big cluster
|
||
|
:return: [Node]
|
||
|
"""
|
||
|
return self._nodes
|
||
|
|
||
|
@nodes.setter
|
||
|
def nodes(self, value):
|
||
|
"""
|
||
|
List of nodes setter
|
||
|
:param value: [Node]
|
||
|
"""
|
||
|
self._nodes = value
|