make a graph out of a system