Difference between revisions of "Dfpt.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "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 a...")
 
Line 1: Line 1:
−
Graph partitioning module. Analyzes the system connectivity graph and
+
{{DISPLAYTITLE:dfpt.m}} __NOTOC__
−
creates a list of all connected subgraphs of up to the user-specified
+
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.
−
size by crawling the graph in all available directions. Syntax:
 
  
−
              subgraphs=dfpt(conmatrix,max_subgraph_size)
+
==Syntax==
  
−
Arguments:
+
    subgraphs=dfpt(conmatrix,max_sg_size)
  
−
              conmatrix  - a matrix with 1 for connected spins
+
==Arguments==
−
                            and zeros elsewhere.
 
  
−
       max_subgraph_size   - maximum connected subgraph size in  
+
        conmatrix  - a matrix with 1 for connected spins
−
                            the resulting subgraph list.
+
                      and zeros elsewhere.
 +
 +
       max_sg_size   - maximum connected subgraph size in  
 +
                      the resulting subgraph list.
  
−
Output: a matrix with each row corresponding to a subgraph. Each row
+
==Outputs==
−
contains 1 for spins that belong to the subgraph and zeros elsewhere.
+
 
 +
        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: [[Author 1]]''

Revision as of 17:22, 28 December 2018

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)

Arguments

        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: Author 1