minimal graphing lib