get the edge source and destination

Hi,

Is there a method to let me print or retrieve the source and destination in one call.

As after I made some modifications in edges I need to print these changes.

For example, source=getEdgeSource (newEdge);

destination=getEdgeDestination(newEdge);

Thanks

Another question , about how could I insert a new edge in a function pass by the basic block and its immediate successor

Thanks