Here's the alliance table. Tables within their own alliance will take a lot more relation drops to go to war, and will also react quite differently to millitarization of other allied countries (they won't see a larger military as a bad thing).
Unalligned nations (Group UNALIGN) can go to war with each other (and anyone) freely.
Now for the ideology table and industry table. With that (and some source code changes) I should be able to generate a sample war.