Beginning of charting logic
Added some querying methods for the graph