25 #include <sys/types.h>
50 #define DGL_DEFINE_TREE_PROCS 1
54 #undef DGL_DEFINE_TREE_PROCS
59 #define DGL_DEFINE_FLAT_PROCS 1
63 #undef DGL_DEFINE_FLAT_PROCS
77 nDestination, fnClip, pvClipArg, pCache);
81 nDestination, fnClip, pvClipArg, pCache);
160 if (write(fd, &pgraph->
Version, 1) != 1) {
165 if (write(fd, &pgraph->
Endian, 1) != 1) {
182 for (cnt = 0; cnt < 16; cnt++) {
232 for (tot = 0, cnt = pgraph->
iNodeBuffer; tot < cnt; tot += nret) {
233 if ((nret = write(fd, &pgraph->
pNodeBuffer[tot], cnt - tot)) <= 0) {
239 for (tot = 0, cnt = pgraph->
iEdgeBuffer; tot < cnt; tot += nret) {
240 if ((nret = write(fd, &pgraph->
pEdgeBuffer[tot], cnt - tot)) <= 0) {
258 if (read(fd, &Endian, 1) != 1) {
264 #ifdef DGL_ENDIAN_BIG
291 for (cnt = 0; cnt < 16; cnt++) {
371 for (tot = 0, cnt = pgraph->
iNodeBuffer; tot < cnt; tot += nret) {
372 if ((nret = read(fd, &pgraph->
pNodeBuffer[tot], cnt - tot)) <= 0) {
382 for (i = 0; i < cn; i++) {
387 for (tot = 0, cnt = pgraph->
iEdgeBuffer; tot < cnt; tot += nret) {
388 if ((nret = read(fd, &pgraph->
pEdgeBuffer[tot], cnt - tot)) <= 0) {
398 for (i = 0; i < cn; i++) {
403 pgraph->
Flags |= 0x1;
int dgl_span_minimum_spanning_V1_TREE(dglGraph_s *pgraphIn, dglGraph_s *pgraphOut, dglInt32_t nVertex, dglSpanClip_fn fnClip, void *pvClipArg)
dglEdgePrioritizer_s edgePrioritizer
void dglTreeNodeCancel(void *pvNode, void *pvParam)
void dglTreeEdgeCancel(void *pvEdge, void *pvParam)
int dgl_span_minimum_spanning_V1_FLAT(dglGraph_s *pgraphIn, dglGraph_s *pgraphOut, dglInt32_t nVertex, dglSpanClip_fn fnClip, void *pvClipArg)
int dgl_initialize_V1(dglGraph_s *pgraph)
dglNodePrioritizer_s nodePrioritizer
int dgl_release_V1(dglGraph_s *pgraph)
void dglTreeEdgePri32Cancel(void *pvEdgePri32, void *pvParam)
void dgl_swapInt64Bytes(dglInt64_t *pn)
int dgl_dijkstra_V1(dglGraph_s *pgraph, dglSPReport_s **ppReport, dglInt32_t *pDistance, dglInt32_t nStart, dglInt32_t nDestination, dglSPClip_fn fnClip, void *pvClipArg, dglSPCache_s *pCache)
int dglTreeNodeCompare(const void *pvNodeA, const void *pvNodeB, void *pvParam)
int dgl_minimum_spanning_V1(dglGraph_s *pgraphIn, dglGraph_s *pgraphOut, dglInt32_t nVertex, dglSpanClip_fn fnClip, void *pvClipArg)
dglInt32_t aOpaqueSet[16]
void dgl_swapInt32Bytes(dglInt32_t *pn)
#define DGL_ERR_MemoryExhausted
void * dglTreeGetAllocator()
#define DGL_ENDIAN_LITTLE
int dgl_dijkstra_V1_TREE(dglGraph_s *pgraph, dglSPReport_s **ppReport, dglInt32_t *pDistance, dglInt32_t nStart, dglInt32_t nDestination, dglSPClip_fn fnClip, void *pvClipArg, dglSPCache_s *pCache)
int dgl_dijkstra_V1_FLAT(dglGraph_s *pgraph, dglSPReport_s **ppReport, dglInt32_t *pDistance, dglInt32_t nStart, dglInt32_t nDestination, dglSPClip_fn fnClip, void *pvClipArg, dglSPCache_s *pCache)
void dglTreeNodePri32Cancel(void *pvNodePri32, void *pvParam)
int dglInitialize(dglGraph_s *pGraph, dglByte_t Version, dglInt32_t NodeAttrSize, dglInt32_t EdgeAttrSize, dglInt32_t *pOpaqueSet)
int dgl_depthfirst_spanning_V1(dglGraph_s *pgraphIn, dglGraph_s *pgraphOut, dglInt32_t nVertex, void *pvVisited, dglSpanClip_fn fnClip, void *pvClipArg)
int dgl_read_V1(dglGraph_s *pgraph, int fd)
int(* dglSPClip_fn)(dglGraph_s *, dglSPClipInput_s *, dglSPClipOutput_s *, void *)
int dgl_span_depthfirst_spanning_V1_TREE(dglGraph_s *pgraphIn, dglGraph_s *pgraphOut, dglInt32_t nVertex, void *pvVisited, dglSpanClip_fn fnClip, void *pvClipArg)
int(* dglSpanClip_fn)(dglGraph_s *, dglGraph_s *, dglSpanClipInput_s *, dglSpanClipOutput_s *, void *)
int dgl_write_V1(dglGraph_s *pgraph, int fd)
int dgl_span_depthfirst_spanning_V1_FLAT(dglGraph_s *pgraphIn, dglGraph_s *pgraphOut, dglInt32_t nVertex, void *pvVisited, dglSpanClip_fn fnClip, void *pvClipArg)