Page Contents
Home > @loopback/context-explorer > ContextGraph > (constructor)
ContextGraph.(constructor)
Constructs a new instance of the ContextGraph class
Signature:
constructor(ctx: JSONObject, options?: ContextGraphOptions);
Parameters
| Parameter | Type | Description |
|---|---|---|
| ctx | [JSONObject](/doc/en/lb4/apidocs.context.jsonobject.html) | |
| options | [ContextGraphOptions](/doc/en/lb4/apidocs.context-explorer.contextgraphoptions.html) | _(Optional)_ |