<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">In DMPLEX, we compute the unweighted edge cut with this code <a href="https://gitlab.com/petsc/petsc/blob/master/src/dm/impls/plex/plex.c#L955" class="">https://gitlab.com/petsc/petsc/blob/master/src/dm/impls/plex/plex.c#L955</a><div class="">You may reuse most of this code to compute the edge cut in your case<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 5, 2019, at 10:34 PM, Mark Adams <<a href="mailto:mfadams@lbl.gov" class="">mfadams@lbl.gov</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 5, 2019 at 11:20 AM Eda Oktay <<a href="mailto:eda.oktay@metu.edu.tr" class="">eda.oktay@metu.edu.tr</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">Hello all,<div class=""><br class=""></div><div class="">I am trying to find edge cut information of ParMETIS and CHACO. When I use ParMETIS, </div><div class="">MatPartitioningViewImbalance(part,partitioning)<br class=""></div><div class="">works and it gives also number of cuts.</div><div class=""><br class=""></div><div class="">However, when I used CHACO, it only gives imbalance information, not edge cut. I have index sets but I couldn't find how to calculate edge cut.</div></div></blockquote><div class=""><br class=""></div><div class="">I've never heard of edge-cuts wrt Chaco. I'm sure it does not collect that information but you could look at the code.</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div class=""><br class=""></div><div class="">Also, does ParMETIS calculate edge cuts according to the values of weights or number of weights?<br class=""></div></div></blockquote><div class=""><br class=""></div><div class="">Good question, I would assume this is an integer, the number of edge cuts, and not the sum of the weights. If it prints and integer then that would be a hint. </div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div class=""></div><div class=""><br class=""></div><div class="">Thanks!</div><div class=""><br class=""></div><div class="">Eda</div></div>
</blockquote></div></div>
</div></blockquote></div><br class=""></div></body></html>