- class netket.graph.AbstractGraph#
Abstract class for NetKet graph objects.
Sequence of edge colors, in the order of the edges returned by
The number of edges in the graph.
The number of nodes (or vertices) in the graph
- abstract adjacency_list()#
List containing the adjacency list of the graph where each node is represented by an integer in [0, n_nodes)
- abstract automorphisms()#
Symmetry group containing the automorphisms of the graph
- abstract distances()#
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)#
Returns the sequence of edges of the graph.
- Return type:
A sequence of edges as tuples
(i, j)or, if return_color is passed, a sequence of tuples
(i, j, c)with
cindicating the color of the respective edge.