Sha256: c524d70f07ed731da36c9e4008ccf74d4c9bb80011e841f1049ec05e189c5752
Contents?: true
Size: 591 Bytes
Versions: 4
Compression:
Stored size: 591 Bytes
Contents
#ifndef ADJ_MATRIX_H #define ADJ_MATRIX_H #define ADJ_MATRIX_DEFAULT_LENGTH 958 #define ADJ_MATRIX_SEED 9527 typedef struct _node{ struct _node *next; unsigned long long x, y; } Node; typedef struct{ Node ***table; unsigned int length; } AdjMatrix; AdjMatrix* adj_matrix_new (unsigned int length); void adj_matrix_add (AdjMatrix *matrix, unsigned long long x, unsigned long long y); char adj_matrix_find (AdjMatrix *matrix, unsigned long long x, unsigned long long y); void adj_matrix_free (AdjMatrix *matrix); AdjMatrix* adj_matrix_default(); #endif
Version data entries
4 entries across 4 versions & 1 rubygems