For simplicity, numbers are converted to Double
Minor improvements (removed instanceofs, ...)
Getting the list of allowed source nodes for a give target node