types_simp.h

来自「17个最短路径源代码。代码效率高」· C头文件 代码 · 共 25 行

H
25
字号
/* defs.h */

typedef  /* arc */
   struct arc_st
{
   long              len;            /* length of the arc */
   struct node_st   *head;           /* head node */
}
  arc;

typedef  /* node */
   struct node_st
{
   arc              *first;           /* first outgoing arc */
   long              dist;	      /* tentative shortest path length */
   struct node_st   *parent;          /* parent pointer */
   struct node_st   *next;            /* next node in queue */
   struct node_st   *t_next;          /* previous node in tree */
   struct node_st   *t_prev;          /* previous node in tree */
   long              t_size;          /* subtree size */
   int               status;          /* status of node */
   long               t_stamp;
} node;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?