gml文件格式解析程序之头文件
2013-01-17 13:50
351 查看
// Header file for VERTEX, EDGE, and NETWORK data structures // // Mark Newman 11 AUG 06 #ifndef _NETWORK_H #define _NETWORK_H typedef struct { int target; // Index in the vertex[] array of neighboring vertex. // (Note that this is not necessarily equal to the GML // ID of the neighbor if IDs are nonconsecutive or do //nonconsecutive 非连贯的 // not start at zero.) double weight; // Weight of edge. 1 if no weight is specified. } EDGE; typedef struct { int id; // GML ID number of vertex int degree; // Degree of vertex (out-degree for directed nets) char *label; // GML label of vertex. NULL if no label specified EDGE *edge; // Array of EDGE structs, one for each neighbor } VERTEX; typedef struct { int nvertices; // Number of vertices in network int directed; // 1 = directed network, 0 = undirected VERTEX *vertex; // Array of VERTEX structs, one for each vertex } NETWORK; #endif
相关文章推荐
- gml文件格式解析程序详解之源文件
- FIT文件格式解析及MATLAB读取程序
- 在Go语言程序中使用gojson来解析JSON格式文件
- FIT文件格式解析及MATLAB读取程序
- 小程序爆破之旅---分析微信源码来解析微信小程序文件格式
- 解析SRT格式的电影字幕文件
- FLV文件格式解析
- 读取siftgeo格式文件的matlab程序
- FLV文件格式解析
- swf文件格式解析入门(文件头解析)ZT
- windows Server 2008 未能加载文件或程序集 或它的某一个依赖项。试图加载格式不正确的程序
- 未能加载文件或程序集“LinqToExcel”或它的某一个依赖项。试图加载格式不正确的程序。
- 程序自解压格式文件的制作
- AAC文件格式解析
- Android解析编译之后的所有文件(so,dex,xml,arsc)格式
- swf文件格式解析入门(文件头解析)
- AVI文件格式解析1
- swf文件格式解析(二)
- MP4文件格式的解析,以及MP4文件的分割算法