Page Contents
Home > @loopback/context-explorer > ContextGraph
ContextGraph class
A graph for context hierarchy
Signature:
export declare class ContextGraph
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| [(constructor)(ctx, options)](/doc/en/lb4/apidocs.context-explorer.contextgraph._constructor_.html) | Constructs a new instance of the `ContextGraph` class |
Methods
| Method | Modifiers | Description |
|---|---|---|
| [build()](/doc/en/lb4/apidocs.context-explorer.contextgraph.build.html) | Build a direct graph | |
| [render()](/doc/en/lb4/apidocs.context-explorer.contextgraph.render.html) | Render the context graph in graphviz dot format | |
| [renderBinding(parent, { binding, id })](/doc/en/lb4/apidocs.context-explorer.contextgraph.renderbinding.html) | `protected` | Render a binding object |
| [renderConfig(parent, { binding, level, id })](/doc/en/lb4/apidocs.context-explorer.contextgraph.renderconfig.html) | `protected` | Create an edge for a binding to its configuration |