Generate the Hamiltonian of the graph.
Parameters: |
|
---|---|
Returns: | :this creates a Hamiltonian object, accessed via the attibute Graph3P.H. |
Return type: |
Note
This needs to be called only if the filename and filetype of the graph were not already called when the Graph object was initialized.
Important
The number of nodes in the imported adjacency matrix must match the number of nodes the Graph2P object is initialized with.
The size of amp and d must be identical
>>> amp = [0.5,-1.,4.2]
>>> len(d) == len(amp)
True