code_junkie

How to model a Bayesian network or, more generally, a directed weighted graph, in SQL?

Nov 12th, 2011
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. create table node (
  2. id int not null auto_increment,
  3. name TEXT
  4. )
  5.  
  6. create table edge (
  7. from_node int not null,
  8. to_node int not null,
  9. weight float
  10. )
Add Comment
Please, Sign In to add comment