hetpy.models.metaPath

 1from typing import List
 2
 3
 4class MetaPath:
 5    """
 6    A semantic path on the heterogeneous information network. 
 7    """
 8    path: List[str]
 9    """A list of edge types that compose the meta path."""
10    description: str
11    """A short, optional description."""
12    abbreviation: str
13    """The abbreviation of the meta path. Functions as a identifier."""
14
15    length: int
16    """The length of the meta path."""
17
18    def __init__(self, path: List[str], description: str = "", abbreviation: str = ""):
19        """
20        Maps parameters and attributes on object creation.
21
22        Parameters
23        ----------
24            path : List[str]
25                A list of edge types that compose the meta path.
26            description : str
27                A short, optional description.
28            abbreviation : str
29                The abbreviation of the meta path. Functions as a identifier.
30        """
31        self.path = path
32        self.description = description
33        self.abbreviation = abbreviation
34
35        self.length = len(path)
class MetaPath:
 5class MetaPath:
 6    """
 7    A semantic path on the heterogeneous information network. 
 8    """
 9    path: List[str]
10    """A list of edge types that compose the meta path."""
11    description: str
12    """A short, optional description."""
13    abbreviation: str
14    """The abbreviation of the meta path. Functions as a identifier."""
15
16    length: int
17    """The length of the meta path."""
18
19    def __init__(self, path: List[str], description: str = "", abbreviation: str = ""):
20        """
21        Maps parameters and attributes on object creation.
22
23        Parameters
24        ----------
25            path : List[str]
26                A list of edge types that compose the meta path.
27            description : str
28                A short, optional description.
29            abbreviation : str
30                The abbreviation of the meta path. Functions as a identifier.
31        """
32        self.path = path
33        self.description = description
34        self.abbreviation = abbreviation
35
36        self.length = len(path)

A semantic path on the heterogeneous information network.

MetaPath(path: List[str], description: str = '', abbreviation: str = '')
19    def __init__(self, path: List[str], description: str = "", abbreviation: str = ""):
20        """
21        Maps parameters and attributes on object creation.
22
23        Parameters
24        ----------
25            path : List[str]
26                A list of edge types that compose the meta path.
27            description : str
28                A short, optional description.
29            abbreviation : str
30                The abbreviation of the meta path. Functions as a identifier.
31        """
32        self.path = path
33        self.description = description
34        self.abbreviation = abbreviation
35
36        self.length = len(path)

Maps parameters and attributes on object creation.

Parameters

path : List[str]
    A list of edge types that compose the meta path.
description : str
    A short, optional description.
abbreviation : str
    The abbreviation of the meta path. Functions as a identifier.
path: List[str]

A list of edge types that compose the meta path.

description: str

A short, optional description.

abbreviation: str

The abbreviation of the meta path. Functions as a identifier.

length: int

The length of the meta path.