class for storing outgoing edges