Contents

BNNSGraphContextMake(_:)

Returns an allocated and initialized graph context from the specified graph.

Declaration

func BNNSGraphContextMake(_ graph: bnns_graph_t) -> bnns_graph_context_t

Parameters

  • graph:

    The compiled graph object.

Return Value

A compiled graph context object. If the operation fails, the graph object’s data property is nil.

Discussion

To prevent memory leaks, call BNNSGraphContextDestroy(_:) when you’re finished using the graph context.

See Also

Creating and destroying a context