Lie Algebras Constructed from Graphs