Added getDependencies method to Node