variable util immediately returns ID if that's what was passed
legend now displays even when there are no nodes or data and only edges