diff --git a/src/main/scala/diplomacy/LazyModule.scala b/src/main/scala/diplomacy/LazyModule.scala index c271fa60..1a98b660 100644 --- a/src/main/scala/diplomacy/LazyModule.scala +++ b/src/main/scala/diplomacy/LazyModule.scala @@ -62,7 +62,7 @@ abstract class LazyModule()(implicit val p: Parameters) bindings.reverse.foreach { f => f () } } - def omitGraphML = nodes.isEmpty && children.isEmpty + def omitGraphML: Boolean = !nodes.exists(!_.omitGraphML) && !children.exists(!_.omitGraphML) lazy val graphML: String = parent.map(_.graphML).getOrElse { val buf = new StringBuilder buf ++= "\n"