netket.graph.AbstractGraph¶
-
class
netket.graph.
AbstractGraph
¶ Bases:
abc.ABC
Abstract class for NetKet graph objects.
- Inheritance
-
__init__
()¶ Initialize self. See help(type(self)) for accurate signature.
- Attributes
-
edge_colors
¶ Sequence of edge colors, in the order of the edges returned by
self.edges
.
-
- Methods
-
abstract
adjacency_list
()[source]¶ List containing the adjacency list of the graph where each node is represented by an integer in [0, n_nodes)
-
abstract
distances
()[source]¶ List containing the distances between the nodes. The distance between unconnected nodes (no path exists between them) is set to -1
-
abstract
edges
(return_color=False, filter_color=None)[source]¶ Returns the sequence of edges of the graph.
-
abstract