Nilpotent Lie Algebras and Nilmanifolds Constructed from Graphs