25 #include <sys/types.h>
47 #define DGL_DEFINE_TREE_PROCS 1
51 #undef DGL_DEFINE_TREE_PROCS
55 #define DGL_DEFINE_FLAT_PROCS 1
59 #undef DGL_DEFINE_FLAT_PROCS
68 nDestination, fnClip, pvClipArg, pCache);
72 nDestination, fnClip, pvClipArg, pCache);
82 pgraphIn, pgraphOut, nVertex, pvVisited, fnClip, pvClipArg);
86 pgraphIn, pgraphOut, nVertex, pvVisited, fnClip, pvClipArg);
143 if (write(fd, &pgraph->
Version, 1) != 1) {
148 if (write(fd, &pgraph->
Endian, 1) != 1) {
165 for (cnt = 0; cnt < 16; cnt++) {
215 for (tot = 0, cnt = pgraph->
iNodeBuffer; tot < cnt; tot += nret) {
216 if ((nret = write(fd, &pgraph->
pNodeBuffer[tot], cnt - tot)) <= 0) {
222 for (tot = 0, cnt = pgraph->
iEdgeBuffer; tot < cnt; tot += nret) {
223 if ((nret = write(fd, &pgraph->
pEdgeBuffer[tot], cnt - tot)) <= 0) {
240 if (read(fd, &Endian, 1) != 1) {
246 #ifdef DGL_ENDIAN_BIG
273 for (cnt = 0; cnt < 16; cnt++) {
352 for (tot = 0, cnt = pgraph->
iNodeBuffer; tot < cnt; tot += nret) {
353 if ((nret = read(fd, &pgraph->
pNodeBuffer[tot], cnt - tot)) <= 0) {
363 for (i = 0; i < cn; i++) {
368 for (tot = 0, cnt = pgraph->
iEdgeBuffer; tot < cnt; tot += nret) {
369 if ((nret = read(fd, &pgraph->
pEdgeBuffer[tot], cnt - tot)) <= 0) {
379 for (i = 0; i < cn; i++) {
384 pgraph->
Flags |= 0x1;
int(* dglSPClip_fn)(dglGraph_s *, dglSPClipInput_s *, dglSPClipOutput_s *, void *)
#define DGL_ENDIAN_LITTLE
#define DGL_ERR_MemoryExhausted
int(* dglSpanClip_fn)(dglGraph_s *, dglGraph_s *, dglSpanClipInput_s *, dglSpanClipOutput_s *, void *)
int dgl_initialize_V1(dglGraph_s *pgraph)
int dgl_write_V1(dglGraph_s *pgraph, int fd)
int dgl_read_V1(dglGraph_s *pgraph, int fd)
int dgl_depthfirst_spanning_V1(dglGraph_s *pgraphIn, dglGraph_s *pgraphOut, dglInt32_t nVertex, void *pvVisited, dglSpanClip_fn fnClip, void *pvClipArg)
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 dgl_minimum_spanning_V1(dglGraph_s *pgraphIn, dglGraph_s *pgraphOut, dglInt32_t nVertex, dglSpanClip_fn fnClip, void *pvClipArg)
int dgl_release_V1(dglGraph_s *pgraph)
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)
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_span_depthfirst_spanning_V1_TREE(dglGraph_s *pgraphIn, dglGraph_s *pgraphOut, dglInt32_t nVertex, void *pvVisited, dglSpanClip_fn fnClip, void *pvClipArg)
int dgl_span_depthfirst_spanning_V1_FLAT(dglGraph_s *pgraphIn, dglGraph_s *pgraphOut, dglInt32_t nVertex, void *pvVisited, dglSpanClip_fn fnClip, void *pvClipArg)
int dgl_span_minimum_spanning_V1_FLAT(dglGraph_s *pgraphIn, dglGraph_s *pgraphOut, dglInt32_t nVertex, dglSpanClip_fn fnClip, void *pvClipArg)
int dgl_span_minimum_spanning_V1_TREE(dglGraph_s *pgraphIn, dglGraph_s *pgraphOut, dglInt32_t nVertex, dglSpanClip_fn fnClip, void *pvClipArg)
void dgl_swapInt64Bytes(dglInt64_t *pn)
void dgl_swapInt32Bytes(dglInt32_t *pn)
dglEdgePrioritizer_s edgePrioritizer
dglInt32_t aOpaqueSet[16]
dglNodePrioritizer_s nodePrioritizer
void dglTreeEdgePri32Cancel(void *pvEdgePri32, void *pvParam UNUSED)
void dglTreeNodeCancel(void *pvNode, void *pvParam UNUSED)
int dglTreeNodeCompare(const void *pvNodeA, const void *pvNodeB, void *pvParam UNUSED)
void dglTreeNodePri32Cancel(void *pvNodePri32, void *pvParam UNUSED)
void * dglTreeGetAllocator(void)
void dglTreeEdgeCancel(void *pvEdge, void *pvParam UNUSED)
int dglInitialize(dglGraph_s *pGraph, dglByte_t Version, dglInt32_t NodeAttrSize, dglInt32_t EdgeAttrSize, dglInt32_t *pOpaqueSet)