Skip to content
GraphInitAlignedWithDeepCopy

GraphInitAlignedWithDeepCopy

Description

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

Parameters

Name Direction Description
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 GraphInit() GraphInitAlignedWithDeepCopy(NULL, NULL, 1)
    
    ///
    /// TAGS: Graph, Init, DeepCopy, Directed
    ///
    #define GraphInitWithDeepCopy(ci, cd) GraphInitAlignedWithDeepCopy((ci), (cd), 1)
    
    ///
    /// TAGS: Graph, Init, Alignment, Directed
    ///
    #define GraphInitAligned(aln) GraphInitAlignedWithDeepCopy(NULL, NULL, (aln))
    
    ///
    
    #ifdef __cplusplus
    #    define GraphInitAlignedWithDeepCopyT(g, ci, cd, aln) (TYPE_OF(g) GraphInitAlignedWithDeepCopy((ci), (cd), (aln)))
    #else
    ///
    /// TAGS: Graph, Init, DeepCopy, Alignment, Directed
    ///
    #    define GraphInitAlignedWithDeepCopyT(g, ci, cd, aln) ((TYPE_OF(g))GraphInitAlignedWithDeepCopy((ci), (cd), (aln)))
    #endif
Last updated on