Difference between revisions of "Dfpt.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
m (Rename Arguments section heading to Parameters)
Line 6: Line 6:
 
     subgraphs=dfpt(conmatrix,max_sg_size)
 
     subgraphs=dfpt(conmatrix,max_sg_size)
  
−
==Arguments==
+
==Parameters==
  
 
         conmatrix  - a matrix with 1 for connected spins  
 
         conmatrix  - a matrix with 1 for connected spins  

Revision as of 17:48, 5 June 2026

Graph partitioning module. Analyzes the system connectivity graph and creates a list of all connected subgraphs of up to the user-specified size by crawling the graph in all available directions.

Syntax

    subgraphs=dfpt(conmatrix,max_sg_size)

Parameters

        conmatrix   - a matrix with 1 for connected spins 
                      and zeros elsewhere.

      max_sg_size   - maximum connected subgraph size in 
                      the resulting subgraph list.

Outputs

        subgraphs   - [n_subgraphs x nspins] matrix; each 
                      row contains 1 for spins that belong
                      to the subgraph and zeroes elsewhere.

See also

scomponents.m, sparse2csr.m, zte.m, path_trace.m, reduce.m

Version 2.3, authors: Ilya Kuprov