support floating numbers in graphs