<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear Troyer,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks so much for your response. Your answer has solved my question. I am sorry but I have another small question here. Whether a pure graph can use "type" attribute in EDGE as in a UNITCELL? I tried to use it but got some puzzling results.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best regards,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Rongyang</div>
<div id="signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,Helvetica,EmojiFont,'Apple Color Emoji','Segoe UI Emoji',NotoColorEmoji,'Segoe UI Symbol','Android Emoji',EmojiSymbols">
<p style="margin-top: 0px; margin-bottom: 0px;"><br>
</p>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>发件人:</b> Comp-phys-alps-users <comp-phys-alps-users-bounces@lists.phys.ethz.ch> 代表 Matthias Troyer <troyer@phys.ethz.ch><br>
<b>发送时间:</b> 2017年11月9日 7:19<br>
<b>收件人:</b> comp-phys-alps-users@lists.phys.ethz.ch<br>
<b>主题:</b> Re: [ALPS-users] How to count dimension of graph defined in Lattice xml library</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">Arbitrary graphs don’t have a “dimension”. Only lattices do.<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 9 Nov 2017, at 14:12, Sun Rongyang <<a href="mailto:sun-rongyang@outlook.com" class="">sun-rongyang@outlook.com</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
Dear all,</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
The definition method of a lattice in ALPS is delicate. But I meet a problem about dimension counting of a pure graph. On the one hand, I define an pure anisotropic graph as:</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
*************************************************************************************************</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<span class="">
<div class=""><GRAPH name="anisotropic open ladder graph test"></div>
<div class="">    <!-- type="0" means horizontal; type="1" means vertical --></div>
<div class="">    <EDGE tyep="0" source="1" target="2"/></div>
<div class="">    <EDGE tyep="0" source="2" target="3"/></div>
<div class="">    <EDGE tyep="0" source="3" target="4"/></div>
<div class="">    <EDGE tyep="0" source="4" target="5"/></div>
<div class="">    <EDGE tyep="0" source="6" target="7"/></div>
<div class="">    <EDGE tyep="0" source="7" target="8"/></div>
<div class="">    <EDGE tyep="0" source="8" target="9"/></div>
<div class="">    <EDGE tyep="0" source="9" target="10"/></div>
<div class="">    <EDGE tyep="1" source="1" target="6"/></div>
<div class="">    <EDGE tyep="1" source="2" target="7"/></div>
<div class="">    <EDGE tyep="1" source="3" target="8"/></div>
<div class="">    <EDGE tyep="1" source="4" target="9"/></div>
<div class="">    <EDGE tyep="1" source="5" target="10"/></div>
<div class=""></GRAPH></div>
<div class=""><span class=""><span class="" style="font-family:Calibri,Helvetica,sans-serif; font-size:16px; font-style:normal">*************************************************************************************************</span></span><br class="">
</div>
<div class="">On the other hand, I use the default LATTICEGRAPH "open ladder", I copy here:</div>
<div class=""><br class="">
</div>
<div class=""><span class=""><span class="" style="font-family:Calibri,Helvetica,sans-serif; font-size:16px; font-style:normal">*************************************************************************************************</span></span><br class="">
</div>
<div class=""><span class="">
<div class=""><LATTICE name="square lattice" dimension="2"></div>
<div class="">  <PARAMETER name="a" default="1"/></div>
<div class="">  <BASIS><VECTOR>a 0</VECTOR><VECTOR>0 a</VECTOR></BASIS></div>
<div class="">  <RECIPROCALBASIS><VECTOR>2*pi/a 0</VECTOR><VECTOR>0 2*pi/a</VECTOR></RECIPROCALBASIS></div>
<div class=""></LATTICE></div>
</span><br class="">
</div>
<div class=""><span class="">
<div class=""><UNITCELL name="anisotropic2d" dimension="2"></div>
<div class="">  <VERTEX/></div>
<div class="">  <EDGE type="0"><SOURCE vertex="1" offset="0 0"/><TARGET vertex="1" offset="1 0"/></EDGE></div>
<div class="">  <EDGE type="1"><SOURCE vertex="1" offset="0 0"/><TARGET vertex="1" offset="0 1"/></EDGE></div>
<div class=""></UNITCELL></div>
</span><br class="">
</div>
<div class=""><span class="">
<div class=""><LATTICEGRAPH name = "open ladder" vt_name="OpenLadderLattice"></div>
<div class="">  <FINITELATTICE></div>
<div class="">    <LATTICE ref="square lattice"/></div>
<div class="">    <PARAMETER name="W" default="2"/></div>
<div class="">    <EXTENT dimension="1" size="L"/></div>
<div class="">    <EXTENT dimension="2" size="W"/></div>
<div class="">    <BOUNDARY dimension="1" type="open"/></div>
<div class="">    <BOUNDARY dimension="2" type="open"/></div>
<div class="">  </FINITELATTICE></div>
<div class="">  <UNITCELL ref="anisotropic2d"/></div>
<div class=""></LATTICEGRAPH></div>
</span><span class=""><span class="" style="font-family:Calibri,Helvetica,sans-serif; font-size:16px; font-style:normal">*************************************************************************************************</span></span><br class="">
</div>
</span>with parameters L=2, W=5. Will they be treated as the same in ALPS? Or the graph equals as L=5,W=2 open ladder?</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
Thanks a lot!</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
Best regards,</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
Rongyang Sun</div>
<div id="x_signature" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<div id="x_divtagdefaultwrapper" dir="ltr" class="" style="font-size:12pt; font-family:Calibri,Helvetica,sans-serif,Helvetica,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p class="" style="margin-top:0px; margin-bottom:0px"> </p>
<div class="" style="margin-top:0px; margin-bottom:0px"><br class="">
</div>
</div>
</div>
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">----</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">Comp-phys-alps-users
 Mailing List for the ALPS Project</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<a href="http://alps.comp-phys.org/" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">http://alps.comp-phys.org/</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">List
 info:<span class="x_Apple-converted-space"> </span></span><a href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">Archive:<span class="x_Apple-converted-space"> </span></span><a href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users</a><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">Unsubscribe
 by writing a mail to<span class="x_Apple-converted-space"> </span></span><a href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">comp-phys-alps-users-leave@lists.phys.ethz.ch</a><span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; float:none; display:inline!important">.</span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>