Difference between revisions of "Prune subgraphs.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Expand See also links to related Spinach functions and docs)
(Fix lead description from MATLAB header (folding/hyphenation pass))
Line 1: Line 1:
 
{{DISPLAYTITLE:prune_subgraphs.m}} __NOTOC__
 
{{DISPLAYTITLE:prune_subgraphs.m}} __NOTOC__
Removes subgraphs that are contained entirely within
+
Removes subgraphs that are contained entirely within other subgraphs.
  
 
==Syntax==
 
==Syntax==

Revision as of 21:50, 22 February 2026

Removes subgraphs that are contained entirely within other subgraphs.

Syntax

            subgraphs=prune_subgraphs(subgraphs)

Arguments

       subgraphs - [ngraphs x nspins] logical array
                   with 1 when a spin belongs to a
                   subgraph and 0 otherwise

Outputs

       subgraphs - [ngraphs x nspins] logical array
                   with 1 when a spin belongs to a
                   subgraph and 0 otherwise

Examples

See examples in the Spinach distribution relevant to this function.

Notes

This page was generated from the function header in the Spinach repository.

See also


Version 2.11, authors: Ilya Kuprov