248 #define TMNET_APPLYOPERATION(net, op, from, to) TMnet_applyOperation(TM_ARG \
253 #define TMNET_HASEDGE(net, from, to) TMnet_hasEdge(TM_ARG \
257 #define TMNET_ISPATH(net, from, to, bmp, wq) TMnet_isPath(TM_ARG \
263 #define TMNET_FINDANCESTORS(net, id, bmp, wq) TMnet_findAncestors(TM_ARG \
268 #define TMNET_FINDDESCENDANTS(net, id, bmp, wq) TMnet_findDescendants(TM_ARG \
void net_free(net_t *netPtr)
Definition: net.c:212
void net_generateRandomEdges(net_t *netPtr, long maxNumParent, long percentParent, random_t *randomPtr)
Definition: net.c:862
bool_t net_findAncestors(net_t *netPtr, long id, bitmap_t *ancestorBitmapPtr, queue_t *workQueuePtr)
Definition: net.c:626
bool_t net_isPath(net_t *netPtr, long fromId, long toId, bitmap_t *visitedBitmapPtr, queue_t *workQueuePtr)
Definition: net.c:425
void net_applyOperation(net_t *netPtr, operation_t op, long fromId, long toId)
Definition: net.c:342
net_t * net_alloc(long numNode)
Definition: net.c:174
int bool_t
Definition: portable_defns.h:32
#define TM_ARGDECL
Definition: tm.h:532
void TMnet_applyOperation(TM_ARGDECL net_t *netPtr, operation_t op, long fromId, long toId)
Definition: net.c:359
bool_t TMnet_isPath(TM_ARGDECL net_t *netPtr, long fromId, long toId, bitmap_t *visitedBitmapPtr, queue_t *workQueuePtr)
Definition: net.c:472
bool_t TMnet_hasEdge(TM_ARGDECL net_t *netPtr, long fromId, long toId)
Definition: net.c:401
enum operation operation_t
bool_t net_hasEdge(net_t *netPtr, long fromId, long toId)
Definition: net.c:377
bool_t TMnet_findDescendants(TM_ARGDECL net_t *netPtr, long id, bitmap_t *descendantBitmapPtr, queue_t *workQueuePtr)
Definition: net.c:804
list_t * net_getParentIdListPtr(net_t *netPtr, long id)
Definition: net.c:596
bool_t net_findDescendants(net_t *netPtr, long id, bitmap_t *descendantBitmapPtr, queue_t *workQueuePtr)
Definition: net.c:745
list_t * net_getChildIdListPtr(net_t *netPtr, long id)
Definition: net.c:610
bool_t net_isCycle(net_t *netPtr)
Definition: net.c:557
bool_t TMnet_findAncestors(TM_ARGDECL net_t *netPtr, long id, bitmap_t *ancestorBitmapPtr, queue_t *workQueuePtr)
Definition: net.c:685