summaryrefslogtreecommitdiff
path: root/libs/subcircuit
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-03-25 11:08:52 +0100
committerClifford Wolf <clifford@clifford.at>2013-03-25 11:08:52 +0100
commit37379648097cb01f6181324c69cabb677ecc06ca (patch)
treee8695a7da1018178e2aa24f2cca4d5b0b22c0751 /libs/subcircuit
parent0f5378b5592f944a1a4c01fb75a0556b11b87cdd (diff)
Improved verbose output of subcircuit
Diffstat (limited to 'libs/subcircuit')
-rw-r--r--libs/subcircuit/subcircuit.cc12
1 files changed, 11 insertions, 1 deletions
diff --git a/libs/subcircuit/subcircuit.cc b/libs/subcircuit/subcircuit.cc
index a4f86d4e..6ee2a0fc 100644
--- a/libs/subcircuit/subcircuit.cc
+++ b/libs/subcircuit/subcircuit.cc
@@ -1505,6 +1505,16 @@ protected:
if (verbose)
{
my_printf("\n");
+ my_printf("Needle nodes:\n");
+ for (int i = 0; i < int(needle.graph.nodes.size()); i++)
+ my_printf("%5d: %s (%s)\n", i, needle.graph.nodes[i].nodeId.c_str(), needle.graph.nodes[i].typeId.c_str());
+
+ my_printf("\n");
+ my_printf("Haystack nodes:\n");
+ for (int i = 0; i < int(haystack.graph.nodes.size()); i++)
+ my_printf("%5d: %s (%s)\n", i, haystack.graph.nodes[i].nodeId.c_str(), haystack.graph.nodes[i].typeId.c_str());
+
+ my_printf("\n");
my_printf("Needle Adjecency Matrix:\n");
printAdjMatrix(needle.adjMatrix);
@@ -1517,7 +1527,7 @@ protected:
diCache.printEdgeTypes();
my_printf("\n");
- my_printf("Enumeration Matrix:\n");
+ my_printf("Enumeration Matrix (haystack nodes at column indices):\n");
printEnumerationMatrix(enumerationMatrix, haystack.graph.nodes.size());
}