Skip to content

Nodes categories

The followings are all the various category of nodes that can be added to a graph.

Info

Please note that there exists Bipartite Graph, Tripartite Graph and Full Graph, all with their peculiarities and restrictions.

Check their documentation for more!

UserNode(value)

Bases: Node

Class that represents 'user' nodes

PARAMETER DESCRIPTION
value

the value to store in the node

TYPE: object

Source code in clayrs/recsys/graphs/graph.py
64
65
def __init__(self, value: str):
    super().__init__(value)

ItemNode(value)

Bases: Node

Class that represents 'item' nodes

PARAMETER DESCRIPTION
value

the value to store in the node

TYPE: object

Source code in clayrs/recsys/graphs/graph.py
82
83
def __init__(self, value: str):
    super().__init__(value)

PropertyNode(value)

Bases: Node

Class that represents 'property' nodes

PARAMETER DESCRIPTION
value

the value to store in the node

TYPE: object

Source code in clayrs/recsys/graphs/graph.py
100
101
def __init__(self, value: str):
    super().__init__(value)