Difference between revisions of "Prune subgraphs.m"
(Normalise sequential blank lines) |
m (Rename Arguments section heading to Parameters) |
||
| Line 6: | Line 6: | ||
subgraphs=prune_subgraphs(subgraphs) | subgraphs=prune_subgraphs(subgraphs) | ||
| − | == | + | ==Parameters== |
subgraphs - [ngraphs x nspins] logical array | subgraphs - [ngraphs x nspins] logical array | ||
Revision as of 18:51, 5 June 2026
Removes subgraphs that are contained entirely within other subgraphs.
Syntax
subgraphs=prune_subgraphs(subgraphs)
Parameters
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