nns.c  1.0.1
Nanowire Network simulator
component.h
Go to the documentation of this file.
1 
16 #ifndef COMPONENT_H
17 #define COMPONENT_H
18 
23 typedef struct
24 {
25  int ws_count;
27  int js_count;
29  int ws_skip;
31  int js_skip;
33  int* Is;
38 
47 int cccmp(const void* e1, const void* e2);
48 
54 
60 
61 #endif /* COMPONENT_H */
void destroy_component(connected_component cc)
Destroy a connected component by freeing its pointers (i.e., Is). The array to be freed must have bee...
Definition: component.c:36
connected_component copy_component(const connected_component cc)
Create a deep copy of a connected component.
Definition: component.c:19
int cccmp(const void *e1, const void *e2)
Compare two connected components according to their size and potentially the number of junctions.
Definition: component.c:7
Connected component of the Nanowire Network. It contains all the information needed to identify the n...
Definition: component.h:24
int ws_skip
Definition: component.h:29
int js_skip
Definition: component.h:31
int ws_count
Definition: component.h:25
int * Is
Definition: component.h:33
int js_count
Definition: component.h:27