Equations of Lines and Graphs