netket.graph.Edgeless

netket.graph.Edgeless(nodes)[source]

Construct a set graph (collection of unconnected vertices).

Parameters

nodes (Union[list, int]) – An integer number of nodes or a list of ints that index nodes of a graph.

Return type

netket.graph.graph.NetworkX

Example

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

NetworkX

Parameters

nodes (Union[list, int]) –