Rate This Document
Findability
Accuracy
Completeness
Readability

kupl_sgraph_create

Create a KUPL static graph. Compared with dynamic graphs, static graphs can be reused. By adding task nodes to a static graph and adding dependencies to the task nodes, the static graph can be used to solve a specific type of problems.

Interface Definition

kupl_sgraph_h kupl_sgraph_create();

Parameters

None

Return Value

  • Success: created static graph
  • Failure: nullptr

Examples

1
2
3
4
5
6
7
8
9
#include <stdio.h> 
#include "kupl.h" 

int main() 
{ 
    kupl_sgraph_h sgraph = kupl_sgraph_create();
    kupl_sgraph_destroy(sgraph);
    return 0;
}

The preceding example demonstrates the process of creating and then destroying a static graph. The preceding kupl_sgraph_create function is used to create a static graph.