Draw graph from string