You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: torchhd/structures.py
+11-11
Original file line number
Diff line number
Diff line change
@@ -794,13 +794,10 @@ class Graph:
794
794
795
795
Args:
796
796
dimensions (int): number of dimensions of the graph.
797
-
directed (bool): decides if the graph will be directed or not.
797
+
directed (bool, optional): specify if the graph is directed or not. Default: ``False``.
798
798
dtype (``torch.dtype``, optional): the desired data type of returned tensor. Default: if ``None``, uses a global default (see ``torch.set_default_tensor_type()``).
799
799
device (``torch.device``, optional): the desired device of returned tensor. Default: if ``None``, uses the current device for the default tensor type (see torch.set_default_tensor_type()). ``device`` will be the CPU for CPU tensor types and the current CUDA device for CUDA tensor types.
800
-
801
-
Args:
802
800
input (Tensor): tensor representing a graph hypervector.
803
-
directed (bool): decides if the graph will be directed or not.
"""Returns the multiset of node neighbors of the input node.
871
868
872
869
Args:
873
870
input (Tensor): Hypervector representing the node.
871
+
outgoing (bool, optional): if ``True``, returns the neighboring nodes that ``input`` has an edge to. If ``False``, returns the neighboring nodes that ``input`` has an edge from. This only has effect for directed graphs. Default: ``True``.
0 commit comments