ENH: "if" keyword for input edges