netket.graph.Edgeless

class netket.graph.Edgeless(n_nodes)

Construct a set graph (collection of unconnected vertices).

Parameters

nodes – An integer number of nodes or a list of ints that index nodes of a graph.

Example

>>> import netket
>>> g=netket.graph.Edgeless([0,1,2,3])
>>> print(g.n_nodes)
4
>>> print(g.n_edges)
0
Return type

Graph