Better error checking
Report error on mixed graphs