populate_graph() now uses lowercase and uppercase letters for node names