diff options
Diffstat (limited to 'src/main/scala/firrtl/graph/RenderDiGraph.scala')
| -rw-r--r-- | src/main/scala/firrtl/graph/RenderDiGraph.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/scala/firrtl/graph/RenderDiGraph.scala b/src/main/scala/firrtl/graph/RenderDiGraph.scala index 812a86ef..b3c1373c 100644 --- a/src/main/scala/firrtl/graph/RenderDiGraph.scala +++ b/src/main/scala/firrtl/graph/RenderDiGraph.scala @@ -19,10 +19,9 @@ class RenderDiGraph[T <: Any](diGraph: DiGraph[T], graphName: String = "", rankD /** * override this to change the default way a node is displayed. Default is toString surrounded by double quotes + * This example changes the double quotes to brackets * {{{ - * val rend = new RenderDiGraph(graph, "alice") { - * override def renderNode(node: Symbol): String = s"\"${symbol.name}\"" - * } + * override def renderNode(node: String): String = { "[" + node + "]" } * }}} */ def renderNode(node: T): String = { |
