Sha256: cd731931018a21903924e6f2f0ce1941016258fa238f06e1819bf0a37bcc196d
Contents?: true
Size: 612 Bytes
Versions: 5
Compression:
Stored size: 612 Bytes
Contents
#ifndef ADJ_MATRIX_H #define ADJ_MATRIX_H 1 #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 /* ADJ_MATRIX_H */
Version data entries
5 entries across 5 versions & 1 rubygems