Minor bug fix on graph (adjacencies as strings)