Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added empty arrows for F flag.

  • Loading branch information...
commit b59ea1277aa6668335f602377a07d0d27a4fa5df 1 parent 7d24aec
@franapoli authored
Showing with 13 additions and 3 deletions.
  1. +13 −3 AdjMatrix.cpp
View
16 AdjMatrix.cpp
@@ -76,10 +76,20 @@ void AdjMatrix::toDot(Nodeset &Ns) {
}
- for (ii=0;ii<_n;++ii){ // process ARCs
+ for (ii=0, i=Ns.begin(); ii<_n; ++ii, ++i){ // process ARCs
for (ij=0; ij<_m; ++ij) {
- if((*_mat)[ii][ij])
- fprintf(fid, "%d->%d;\n", ii, ij);
+ if((*_mat)[ii][ij]) {
+ bool found = false;
+ attribs = i->GetAttributes();
+ for(mapit = attribs.begin(); mapit!=attribs.end(); mapit++){
+ if(mapit->first == "LEAF_FLAGS" && mapit->second == "F") {
+ fprintf(fid, "%d->%d [arrowhead = \"empty\"];\n", ii, ij);
+ found = true;
+ }
+ }
+ if (!found)
+ fprintf(fid, "%d->%d;\n", ii, ij);
+ }
}
}
fprintf(fid, "}");
Please sign in to comment.
Something went wrong with that request. Please try again.