include/LAGraph.h
int mybfs (LAGraph_Graph G, GrB_Vector *parent, int64_t src)
    {
        GrB_Vector workvector = NULL ;
        double *W = NULL ;
        char msg [LAGRAPH_MSG_LEN] ;
        (*parent) = NULL ;
        LAGraph_TRY (LAGraph_BreadthFirstSearch (NULL, parent, G, src, msg)) ;
        // ...
        return (0) ;
    }
// an example user function that uses LAGraph_TRY / LAGraph_CATCH
an example user function that uses LAGraph_TRY / LAGraph_CATCH
an example user function that uses LAGraph_TRY / LAGraph_CATCH
int mybfs (LAGraph_Graph G, GrB_Vector *parent, int64_t src)
    {
        GrB_Vector workvector = NULL ;
        double *W = NULL ;
        char msg [LAGRAPH_MSG_LEN] ;
        (*parent) = NULL ;
        LAGraph_TRY (LAGraph_BreadthFirstSearch (NULL, parent, G, src, msg)) ;
        return (0) ;
    }
int mybfs ( LAGraph_Graph G , GrB_Vector * parent , int64_t src ) { GrB_Vector workvector = NULL ; double * W = NULL ; char msg [ LAGRAPH_MSG_LEN ] ; ( * parent ) = NULL ; LAGraph_TRY ( LAGraph_BreadthFirstSearch ( NULL , parent , G , src , msg ) ) ; return ( 0 ) ; }
an example user function that uses LAGraph_TRY / LAGraph_CATCH
an example user function that uses LAGraph_TRY / LAGraph_CATCH
// ...