improve visualization

click the button to display the in-degree or out-degree in the current
window