fix bug #8 with regard to connection direction

fix bug #8 with regard to connection direction, now source and target
can be switched in the connection notation