/[paths]/src/graph.h
ViewVC logotype

Diff of /src/graph.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by ben, Sat Jul 7 15:12:26 2012 UTC revision 5 by ben, Sat Jul 7 15:20:01 2012 UTC
# Line 33  struct graph { Line 33  struct graph {
33          int count;          int count;
34  }  }
35    
 struct node* node_new(void);  
   
36  void node_destroy(struct node* n);  void node_destroy(struct node* n);
37    
38  struct edge* edge_new(void);  void node_radomize(struct node* n);
39    
40  void edge_randomize(struct edge* e);  void edge_randomize(struct edge* e);
41    
 void edge_destroy(struct edge* e);  
   
42  void node_link(struct node* a, struct node* b);  void node_link(struct node* a, struct node* b);
43    
44  void node_unlink(struct node* a, struct node* b);  void node_unlink(struct node* a, struct node* b);
45    
46  void node_radomize(struct node* n);  struct graph* graph_new(int n);
   
 void node_reset(struct node* n);  
   
 struct node* graph_new(int n);  
47    
48  void graph_randomize(struct node*);  void graph_randomize(struct graph*);
49    
50  #endif  #endif

Legend:
Removed from v.4  
changed lines
  Added in v.5

  ViewVC Help
Powered by ViewVC 1.1.26