summaryrefslogtreecommitdiffstats
path: root/src/graphviz.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphviz.cc')
-rw-r--r--src/graphviz.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graphviz.cc b/src/graphviz.cc
index aa5bb08..d5dbcd0 100644
--- a/src/graphviz.cc
+++ b/src/graphviz.cc
@@ -25,14 +25,14 @@ void GraphViz::AddTarget(Node* node) {
printf("\"%p\" [label=\"%s\"]\n", node, node->path().c_str());
visited_.insert(node);
- if (!node->in_edge_) {
+ Edge* edge = node->in_edge();
+
+ if (!edge) {
// Leaf node.
// Draw as a rect?
return;
}
- Edge* edge = node->in_edge_;
-
if (edge->inputs_.size() == 1 && edge->outputs_.size() == 1) {
// Can draw simply.
// Note extra space before label text -- this is cosmetic and feels