Statistical Consistency Of Structural Learning In Networks And Graphical Models