Class

firrtl.graph

RenderDiGraph

Related Doc: package graph

Permalink

class RenderDiGraph[T] extends AnyRef

Implement a really simple graphviz dot renderer for a digraph There are three main renderers currently -

T

The type of the Node.

Source
RenderDiGraph.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RenderDiGraph
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RenderDiGraph(diGraph: DiGraph[T], graphName: String = "", rankDir: String = "LR")

    Permalink

    diGraph

    The DiGraph to be rendered

    graphName

    Name of the graph, when shown in viewer

    rankDir

    Graph orientation, default is LR (left to right), most common alternative is TB (top to bottom)

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def findOneLoop: Set[T]

    Permalink

    This finds a loop in a DiGraph if one exists and returns nodes

    This finds a loop in a DiGraph if one exists and returns nodes

    Note

    there is no way to currently to specify a particular loop

  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. def renderNode(node: T): String

    Permalink

    override this to change the default way a node is displayed.

    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

    override def renderNode(node: String): String = { "[" + node + "]" }
  17. def showOnlyTheLoopAsDot: String

    Permalink

    Searches a DiGraph for a cycle.

    Searches a DiGraph for a cycle. The first one found will be rendered as a graph that contains only the nodes in the cycle plus the neighbors of those nodes.

    returns

    a string that can be used as input to the dot command, string is empty if no loop

  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toDot: String

    Permalink

    Convert this graph into input for the graphviz dot program

    Convert this graph into input for the graphviz dot program

    returns

    A string representation of the digraph in dot notation

  20. def toDotRanked: String

    Permalink

    Convert this graph into input for the graphviz dot program.

    Convert this graph into input for the graphviz dot program. It tries to align nodes in columns based on their minimum distance to a source. Can also be faster and better behaved on large graphs

    returns

    string that is a graphviz digraph

  21. def toDotWithLoops(loopedNodes: Set[T], rankedNodes: ArrayBuffer[Seq[T]]): String

    Permalink

    Convert this graph into input for the graphviz dot program, but with a loop,if present, highlighted in red.

    Convert this graph into input for the graphviz dot program, but with a loop,if present, highlighted in red.

    returns

    string that is a graphviz digraph, but with loops highlighted

  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped