<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Level_structure</id>
	<title>Level structure - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Level_structure"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Level_structure&amp;action=history"/>
	<updated>2026-05-10T04:01:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Level_structure&amp;diff=5416221&amp;oldid=prev</id>
		<title>imported&gt;Old Man Consequences: stub sort</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Level_structure&amp;diff=5416221&amp;oldid=prev"/>
		<updated>2025-11-11T15:52:07Z</updated>

		<summary type="html">&lt;p&gt;stub sort&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Previous revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:52, 11 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Short description|Object in graph theory}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Graph level structure.svg|thumb|upright=1.3|An example for an undirected Graph with a vertex {{mvar|r}} and its corresponding level structure]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Graph level structure.svg|thumb|upright=1.3|An example for an undirected Graph with a vertex {{mvar|r}} and its corresponding level structure]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{hatnote|For the concept in algebraic geometry, see [[level structure (algebraic geometry)]]}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{hatnote|For the concept in algebraic geometry, see [[level structure (algebraic geometry)]]}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l70&quot;&gt;Line 70:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 71:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Graph theory objects]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Graph theory objects]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{graph-stub}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Old Man Consequences</name></author>
	</entry>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Level_structure&amp;diff=601461&amp;oldid=prev</id>
		<title>imported&gt;GreenC bot: Move 1 url. Wayback Medic 2.5 per WP:URLREQ#citeftp</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Level_structure&amp;diff=601461&amp;oldid=prev"/>
		<updated>2025-05-27T11:10:26Z</updated>

		<summary type="html">&lt;p&gt;Move 1 url. &lt;a href=&quot;/wiki143/index.php?title=User:GreenC/WaybackMedic_2.5&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:GreenC/WaybackMedic 2.5 (page does not exist)&quot;&gt;Wayback Medic 2.5&lt;/a&gt; per &lt;a href=&quot;/wiki143/index.php?title=WP:URLREQ&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:URLREQ (page does not exist)&quot;&gt;WP:URLREQ#citeftp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:Graph level structure.svg|thumb|upright=1.3|An example for an undirected Graph with a vertex {{mvar|r}} and its corresponding level structure]]&lt;br /&gt;
{{hatnote|For the concept in algebraic geometry, see [[level structure (algebraic geometry)]]}}&lt;br /&gt;
In the [[mathematics|mathematical]] subfield of [[graph theory]] a &amp;#039;&amp;#039;&amp;#039;level structure&amp;#039;&amp;#039;&amp;#039; of a [[rooted graph]] is a [[Partition of a set|partition]] of the [[vertex (graph theory)|vertices]] into subsets that have the same [[distance (graph theory)|distance]] from a given root vertex.&amp;lt;ref name=&amp;quot;dps&amp;quot;&amp;gt;{{Cite FTP | last1 = Díaz | first1 = Josep&lt;br /&gt;
 | last2 = Petit | first2 = Jordi&lt;br /&gt;
 | last3 = Serna | first3 = Maria | author3-link = Maria Serna&lt;br /&gt;
 | doi = 10.1145/568522.568523&lt;br /&gt;
 | issue = 3&lt;br /&gt;
 | pages = 313–356&lt;br /&gt;
 | title = A survey of graph layout problems&lt;br /&gt;
 | url = ftp://ftp-sop.inria.fr/mascotte/personnel/Stephane.Perennes/DPS02.pdf&lt;br /&gt;
 | volume = 34&lt;br /&gt;
 | year = 2002| citeseerx = 10.1.1.12.4358&lt;br /&gt;
 | server = ACM Computing Surveys | s2cid = 63793863&lt;br /&gt;
 }}.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Definition and construction==&lt;br /&gt;
Given a [[connected graph]] &amp;#039;&amp;#039;G&amp;#039;&amp;#039; = (&amp;#039;&amp;#039;V&amp;#039;&amp;#039;, &amp;#039;&amp;#039;E&amp;#039;&amp;#039;) with &amp;#039;&amp;#039;V&amp;#039;&amp;#039; the set of  [[vertex (graph theory)|vertices]] and &amp;#039;&amp;#039;E&amp;#039;&amp;#039; the set of [[edge (graph theory)|edges]], and with a root vertex &amp;#039;&amp;#039;r&amp;#039;&amp;#039;, the level structure is a partition of the vertices into subsets &amp;#039;&amp;#039;L&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039; called levels, consisting of the vertices at distance &amp;#039;&amp;#039;i&amp;#039;&amp;#039; from &amp;#039;&amp;#039;r&amp;#039;&amp;#039;. Equivalently, this set may be defined by setting &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;0&amp;lt;/sub&amp;gt;&amp;amp;nbsp;=&amp;amp;nbsp;{&amp;#039;&amp;#039;r&amp;#039;&amp;#039;}, and then, for &amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;amp;nbsp;&amp;gt;&amp;amp;nbsp;0, defining &amp;#039;&amp;#039;L&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039; to be the set of vertices that are neighbors to vertices in &amp;#039;&amp;#039;L&amp;#039;&amp;#039;&amp;lt;sub&amp;gt;&amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;amp;nbsp;&amp;amp;minus;&amp;amp;nbsp;1&amp;lt;/sub&amp;gt; but are not themselves in any earlier level.&amp;lt;ref name=&amp;quot;dps&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The level structure of a graph can be computed by a variant of [[breadth-first search]]:&amp;lt;ref name=&amp;quot;mehlhorn&amp;quot;&amp;gt;{{cite book |last1=Mehlhorn |first1=Kurt |author1-link=Kurt Mehlhorn|first2=Peter |last2=Sanders|author2-link=Peter Sanders (computer scientist) |title=Algorithms and Data Structures: The Basic Toolbox |publisher=Springer |year=2008 |url=http://people.mpi-inf.mpg.de/~mehlhorn/ftp/Toolbox/GraphTraversal.pdf}}&amp;lt;/ref&amp;gt;{{rp|176}}&lt;br /&gt;
&lt;br /&gt;
 &amp;#039;&amp;#039;&amp;#039;algorithm&amp;#039;&amp;#039;&amp;#039; level-BFS(G, r):&lt;br /&gt;
     Q ← {r}&lt;br /&gt;
     &amp;#039;&amp;#039;&amp;#039;for&amp;#039;&amp;#039;&amp;#039; ℓ &amp;#039;&amp;#039;&amp;#039;from&amp;#039;&amp;#039;&amp;#039; 0 &amp;#039;&amp;#039;&amp;#039;to&amp;#039;&amp;#039;&amp;#039; ∞:&lt;br /&gt;
         process(Q, ℓ)  &amp;#039;&amp;#039;// the set Q holds all vertices at level ℓ&amp;#039;&amp;#039;&lt;br /&gt;
         mark all vertices in Q as discovered&lt;br /&gt;
         Q&amp;#039; ← {}&lt;br /&gt;
         &amp;#039;&amp;#039;&amp;#039;for&amp;#039;&amp;#039;&amp;#039; u &amp;#039;&amp;#039;&amp;#039;in&amp;#039;&amp;#039;&amp;#039; Q:&lt;br /&gt;
             &amp;#039;&amp;#039;&amp;#039;for each&amp;#039;&amp;#039;&amp;#039; edge (u, v):&lt;br /&gt;
                 &amp;#039;&amp;#039;&amp;#039;if&amp;#039;&amp;#039;&amp;#039; v is not yet marked:&lt;br /&gt;
                     add v to Q&amp;#039;&lt;br /&gt;
         &amp;#039;&amp;#039;&amp;#039;if&amp;#039;&amp;#039;&amp;#039; Q&amp;#039; is empty:&lt;br /&gt;
             &amp;#039;&amp;#039;&amp;#039;return&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
         Q ← Q&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Properties==&lt;br /&gt;
In a level structure, each edge of &amp;#039;&amp;#039;G&amp;#039;&amp;#039; either has both of its endpoints within the same level, or its two endpoints are in consecutive levels.&amp;lt;ref name=&amp;quot;dps&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
The partition of a graph into its level structure may be used as a heuristic for graph layout problems such as [[graph bandwidth]].&amp;lt;ref name=&amp;quot;dps&amp;quot;/&amp;gt; The [[Cuthill–McKee algorithm]] is a refinement of this idea, based on an additional sorting step within each level.&amp;lt;ref&amp;gt;{{citation&lt;br /&gt;
 | last1 = Cuthill | first1 = E. | author1-link = Elizabeth Cuthill&lt;br /&gt;
 | last2 = McKee | first2 = J.&lt;br /&gt;
 | contribution = Reducing the bandwidth of sparse symmetric matrices&lt;br /&gt;
 | doi = 10.1145/800195.805928&lt;br /&gt;
 | pages = 157–172&lt;br /&gt;
 | publisher = ACM&lt;br /&gt;
 | title = Proceedings of the 1969 24th national conference (ACM &amp;#039;69)&lt;br /&gt;
 | year = 1969| s2cid = 18143635 }}.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Level structures are also used in algorithms for [[sparse matrix|sparse matrices]],&amp;lt;ref&amp;gt;{{citation&lt;br /&gt;
 | last = George | first = J. Alan&lt;br /&gt;
 | contribution = Solution of linear systems of equations: direct methods for finite element problems&lt;br /&gt;
 | location = Berlin&lt;br /&gt;
 | mr = 0440883&lt;br /&gt;
 | pages = 52–101. Lecture Notes in Math., Vol. 572&lt;br /&gt;
 | publisher = Springer&lt;br /&gt;
 | title = Sparse matrix techniques (Adv. Course, Technical Univ. Denmark, Copenhagen, 1976)&lt;br /&gt;
 | year = 1977}}.&amp;lt;/ref&amp;gt; and for constructing [[planar separator theorem|separators of planar graphs]].&amp;lt;ref&amp;gt;{{citation&lt;br /&gt;
 | last1 = Lipton | first1 = Richard J. | author1-link = Richard J. Lipton&lt;br /&gt;
 | last2 = Tarjan | first2 = Robert E. | author2-link = Robert Tarjan&lt;br /&gt;
 | journal = SIAM Journal on Applied Mathematics&lt;br /&gt;
 | pages = 177–189&lt;br /&gt;
 | title = A separator theorem for planar graphs&lt;br /&gt;
 | volume = 36&lt;br /&gt;
 | year = 1979&lt;br /&gt;
 | doi = 10.1137/0136016&lt;br /&gt;
 | issue = 2| citeseerx = 10.1.1.214.417}}.&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Graph theory objects]]&lt;/div&gt;</summary>
		<author><name>imported&gt;GreenC bot</name></author>
	</entry>
</feed>