Skip to content
GraphInitAlignedWithDeepCopyT

GraphInitAlignedWithDeepCopyT

Description

Initialize given graph with deep-copy callbacks and explicit node alignment.

Parameters

Name Direction Description
g in Variable or type of a graph to be initialized.
ci in Optional deep-copy callback for nodes.
cd in Optional deinit callback for nodes.
aln in Alignment used for graph-owned node payload allocations.

Usage example (Cross-references)

Usage examples (Cross-references)
    /// TAGS: Graph, Init, Directed
    ///
    #define GraphInitT(g) GraphInitAlignedWithDeepCopyT((g), NULL, NULL, 1)
    
    ///
    /// TAGS: Graph, Init, DeepCopy, Directed
    ///
    #define GraphInitWithDeepCopyT(g, ci, cd) GraphInitAlignedWithDeepCopyT((g), (ci), (cd), 1)
    
    ///
    /// TAGS: Graph, Init, Alignment, Directed
    ///
    #define GraphInitAlignedT(g, aln) GraphInitAlignedWithDeepCopyT((g), NULL, NULL, (aln))
    
    ///
    
    #ifdef __cplusplus
    #    define GraphInitAlignedWithDeepCopyT(g, ci, cd, aln) (TYPE_OF(g) GraphInitAlignedWithDeepCopy((ci), (cd), (aln)))
    #else
    ///
Last updated on