Added getNodeFromArcOutOfType and getNodeFromArcInOfType + corrected a bug in getNodeFromArcInOfType
Corrected a bug in getNodeFromArcInOfType