Add functions for incoming and outgoing edges